What are the differences between class anad object?

Questions by dhanasweet   answers by dhanasweet

Showing Answers 1 - 3 of 3 Answers

Classes and objects are separate but related concepts. Every object belongs to a class and every class contains one or more related objects. A Class is static. The attributes of a class don't change. An Object on the other hand has a limited lifespan. Objects are created and eventually destroyed. Also during that lifetime, the attributes of the object may undergo significant change. A class is a general concept while objects are the specific and real instances that embody that concept.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions