0

What is the difference between property and method?explain please....

23rd Sep 2017, 1:17 AM
sheikhrafe
2 Réponses
+ 6
Properties are the data storage of an object, while methods are object's executable functions.
23rd Sep 2017, 1:31 AM
John Wells
John Wells - avatar
+ 1
yes method do exicute work like Main method which is in Java whenever JVM run first it's ask sheikhrafe do you have main method if it's not I can't run this is compulsory after version of 1.7 Main method ,,,,,public static void main(string[] args) you can change Main method in side of JVM understand it's inside JVM you can replace with yr name like sheikhrafe(string[] agrs)
23rd Sep 2017, 1:42 AM
prashant vyas
prashant vyas - avatar