- 2
What is the difference between instance of class and instance of method?
Thank you
3 Réponses
+ 1
instance of a class is to take an object of this class
ex. Class1 obj = new Class1 ();
instance of a method is passing a value to its arguments
public int fun (int x =1){
}
0
A method is already instance.
0
method is a function inside class =)