+ 1

methods and object

what is the difference between methods objects? confused.

27th Apr 2020, 11:27 PM
CMD
CMD - avatar
1 Answer
+ 1
Method is a particular function which is written inside a class in OOP Object is an instance or variable of that class. For ex: you take this example: int z; here int is data type, similar to class this class is having some properties,similar to methods/functions here z is variable, similar to objects of that class
27th Apr 2020, 11:54 PM
Prabhat Ranjan
Prabhat Ranjan - avatar