- 2

What is the difference between instance of class and instance of method?

Thank you

12th Sep 2016, 2:45 PM
Ahmad Sher
Ahmad Sher - avatar
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){ }
30th Sep 2016, 3:37 AM
Mamba
Mamba - avatar
0
A method is already instance.
13th Sep 2016, 9:33 AM
NEO
NEO - avatar
0
method is a function inside class =)
6th Dec 2016, 1:45 PM
Yevhen Chudniy
Yevhen Chudniy - avatar