0

difference between method and class?

18th Feb 2017, 4:26 AM
Maria Ghulam Rasool
Maria Ghulam Rasool - avatar
3 odpowiedzi
+ 2
imagine class to be a section in a bookstore that only contains books related to it , the books here can be assumed as method
18th Feb 2017, 7:13 AM
Akshata
Akshata - avatar
0
Both are same, there is no differenceits just a different term for the same thing in C#. Method: In object-oriented programming, a method is a subroutine (or procedure or function) associated with a class. With respect to Object Oriented programming the term "Method" is used, notfunctions.
18th Feb 2017, 4:31 AM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
0
thanks Ashkata and Quantum :)
19th Feb 2017, 4:06 PM
Maria Ghulam Rasool
Maria Ghulam Rasool - avatar