What is the difference between a class and an object? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the difference between a class and an object?

18th Aug 2019, 4:03 PM
Ахан
Ахан - avatar
4 Answers
+ 1
A object is an instance of a class. Have a look at SoloLearns Tutorial about java, this will help you. :) A class can be seen as a building plan for an object. For example you describe some parameters and methods in a class. To use this class you have to create an instance of this class, a so called object.
18th Aug 2019, 4:05 PM
Tom Hammerbacher
Tom Hammerbacher - avatar
+ 1
Swim, Thanks
18th Aug 2019, 8:19 PM
Ахан
Ахан - avatar
0
can somehow explain in a particular language?
18th Aug 2019, 5:20 PM
Ахан
Ахан - avatar
0
show an example?
18th Aug 2019, 5:22 PM
Ахан
Ахан - avatar