I have been interviewed by many people in my life. Interviewers often go with simple root level questions like what is an object.
Many candidates often get confused with simple questions ! One more is given below

Class — Definition and Small Explaination

1.A class definition is like a blueprint that specifies what the type can do.

2.A class is a set of objects having similar state and behaviour.

3.Memory is not allocated for classes but objects of that class.

4.Class represents abstraction.

5.A single object is simply an instance of a class.

6.Objects that share no common structure and behaviour cannot be grouped together in a class.

7.A class is a template from which we can create objects objects.

—————

Pawan Kumar

Pawankkmr@hotmail.com

Advertisements