+ 2

What is the difference between Methods , Class and objects?

23rd Aug 2021, 6:52 AM
Dipika😊
Dipika😊 - avatar
6 ответов
+ 1
Humans are a class (think of it as a category), Deepika pandit is an object of that class. Since, you are an instance of human class, you also have all the common attribute of human class and their functions (what they can do. method like run, read, program ). You got it?
23rd Aug 2021, 7:21 AM
CHANDAN ROY
CHANDAN ROY - avatar
+ 8
Object: -Object is an instance of a class. -Object is a physical entity. Class: -Class is a blueprint or template from which objects are created. -Class is a logical entity. Method: -A function that express the behaviour of an object. -Method depend on the class.
21st Nov 2021, 3:41 PM
Vaibhav
Vaibhav - avatar
+ 1
All three terms Method Class and objects are different different things and its not possible to explain in few words it will be better if you will search on Google you can get lots of tutorials and website where you can understood concepts better with examples.
23rd Aug 2021, 8:39 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
Amazed at how ppl are answering something this simple that can be googled and have thousands of videos and articles on it . Maybe if op had put the effort into describing what actually they can't understand , an answer would make some sense . But i guess since it's a beginner platform , these type of questions must be ok !!
23rd Aug 2021, 8:14 AM
Abhay
Abhay - avatar