ICSE Class 10 Computer Applications
Question 5 of 16
Library Classes — Question 5
Back to all questions 5
Question Question 3
Why is a class called a composite data type? Explain.
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.