what is the difference between object, class and method. can someone explain with analogy | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what is the difference between object, class and method. can someone explain with analogy

object/class/method

27th Jun 2016, 6:32 AM
Sangha Mitra
Sangha Mitra - avatar
5 Answers
+ 1
object is an instance of a class. and with methods you can specify specific things like movement of an animal in the animal class. www.programmerinterview.com/index.php/java-questions/difference-between-object-and-class/
27th Jun 2016, 6:53 AM
seyfullah
seyfullah - avatar
+ 1
its just a question. you dont need to get angry or something. we are here to learn and get help from other learners. so lets respect each other and help each other even if you think the question is stupid. to me a question is never stupid.
27th Jun 2016, 8:28 AM
seyfullah
seyfullah - avatar
0
to see more detailed explanation go to the site.
27th Jun 2016, 6:53 AM
seyfullah
seyfullah - avatar
0
thanks neeraj...hope ur not the admin...I got answer from seyfullah...u don't worry
27th Jun 2016, 8:21 AM
Sangha Mitra
Sangha Mitra - avatar
0
class contains the method and object is used to access that particular method dependind upon the visibility mode selected for method
27th Jun 2016, 12:04 PM
Sagar Agrawal
Sagar Agrawal - avatar