Computer Science, asked by Anonymous, 1 year ago

why is a class called a user defined data type

Answers

Answered by cyrusbishop
64

Answer:

Object oriented programming allows us to model real world objects. User-defined classes combine the data and methods as integrated components.

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. 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.  

Answered by chkartikkgp
24

Answer:

A class with a specific name that serves as a specific date type. Therefore, a class is referred to as user defined data type.

Similar questions