why class is a user defined data types
Answers
Answered by
0
bhai quetion is not clear
Answered by
0
Answer:
Java language uses some pre-defined data types such as int, float and char.
These data types are also known as composite data type, which provide some preliminary facilities in Java programming. When they are used to declare any variable, then the variable would possess its built-in characteristics.
Similarly, a user may create a data type and declare certain characteristics and behaviour within it. This can be done by using a class.
This is the reason why a class is referred as user defined data type.
Similar questions