Relationship between Class and Object

State the relationship between Class and an Object?

E

Expert

Verified

Class acts as blue-print which defines the states, properties and behaviours which are common to the number of objects. An object is an instance of the class. Such as, you have a class called Vehicle and Car is the object of that class. You may create any number of objects for the class named Vehicle, like Van, Truck, and Auto.
The “new” operator is used to create an object of a class. When an object of the class is instantiated, the system assigns memory for each data member which is present in the class.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.