KnowledgeBoat Logo
|

Computer Applications

Why is a class called a composite data type? Explain.

Java Library Classes

3 Likes

Answer

In a class, one can assemble items of different data types to create a composite data type. The class can also be considered as a new data type created by the user, that has its own functionality. The classes allow these user-defined types to be used in programs. Hence, a class is called a composite data type.

Answered By

2 Likes


Related Questions