Categories

Jun 11 in C++

Q:

What is the difference between an Object and a Class?

1 Answer

Jun 11

Class is a blueprint of a project or problem to be solved and consists of variables and methods. These are called the members of the class. We cannot access methods or variables of the class on its own unless they are declared static.

In order to access the class members and put them to use, we should create an instance of a class which is called an Object. The class has an unlimited lifetime whereas an object has a limited lifespan only.

Click here to read more about C++
Click here to read more about Insurance

Related questions

Madanswer
Jun 19, 2019 in C++
Jun 19, 2019 in C++
Jun 25, 2019 in Dot Net
...