Doubt in classes, objects and data members

So after watching this video I learned that Car is nothing but a class (blueprint of a object). The variable c which we have created like :

Car c;

So here c is an object. And price, model_no and name are its data members of this object.

Conclusion according to me :

Classes contains objects and objects contains its data members

I just want to confirm. Is this concept alright ?

Set of object is termed as class. (object = BMW, AUDI, Ferrari)
And these objects have their data members.(data members = engine, speed, gear)
class here will be car.

1 Like

So the concept that I have learned is right ?

Please elaborate this.

Let us say we have write :

Car c;

So here c is an object and the data which it will store are its data members. So therefore I am saying that a object contains it’s data members.

an object contains class data members (Yes this is right).

1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.