A class creates a new data type that can be used to create objects . All of us know this but a class creates a logical framework that defines the relationship between its members . When we declare an object of a class, we are creating an instance of that class. Thus , a class is a logical construct . An object has physical reality. Because of it, an object occupies space in memory.
It is important to keep this distinction clearly in mind.
It is important to keep this distinction clearly in mind.
No comments:
Post a Comment