Give the reason why a class is known as:
A composite data type
28 Likes
A class is composed of member variables which are of different data types. Hence, a class can be viewed as a composite data type.
Answered By
17 Likes
How are classes and objects inter-related? Support your answer with an example.
A user-defined data type
An object factory
Explain in detail how a class is different from an object.