+ 3
Why class is known as composite data type?
2 Respostas
- 1
A composite data type is one which is composed with various primitive data type. A class defined with various primitive data types such as int, double etc; so it is known as a composite data type; and it is used to create objects which hold similar types of values and behaviours (functions).
http://rajuxavier.org/manage/index.php/questionpapericsex/year_section/2009/A
+ 1
Because it can have other data types inside. For example:
class Student {
private int number;
private String name;
}