+ 3

Why class is known as composite data type?

14th Sep 2018, 11:53 AM
mn121
mn121 - avatar
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
16th Sep 2018, 3:50 AM
deepak sharma
deepak sharma - avatar
+ 1
Because it can have other data types inside. For example: class Student { private int number; private String name; }
15th Sep 2018, 2:01 PM
Ximi13
Ximi13 - avatar