what is the relationship between a class and an


What is the relationship between a class and an object?

A class acts as a blue-print that explains the properties, states, and behaviors that are common to a number of objects. An object is an instance of the class. For example, you have a class called Vehicle and Car is the object of that class. You can make any number of objects for the class named Vehicle, such as Van, Truck, and Auto.

The new operator is used to make an object of a class. When an object of a class is instantiated, the system allocates memory for every data member that is present in the class.

 

Request for Solution File

Ask an Expert for Answer!!
DOT NET Programming: what is the relationship between a class and an
Reference No:- TGS0311017

Expected delivery within 24 Hours