Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

what are the differences between class anad object?

anad class differences object
0
10 Posted

what are the differences between class anad object?

0
10

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123