Advertisements
Advertisements
Question
Why is a class known as composite data type?
Short Answer
Solution
Users can use a class to define a data type. The data can be of numerous types, including string, integer, float, double, and boolean. This is why a class is considered a composite data type.
shaalaa.com
Is there an error in this question or solution?