Computer Science

In what way is a class helpful in creating a user defined data type?

Objects & Classes

2 Likes

Answer

We may need to use a group of primitive types so that a number of values can be operated simultaneously by using a single interface. To do so, user may define a class with a specific name that serves as a specific data type. This is the reason, a class is referred to as user defined data type.

Answered By

1 Like


Related Questions