+ 1
methods and object
what is the difference between methods objects? confused.
1 Respuesta
+ 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