Why is a class known as composite data type?

Short Answer
Views 27

Answer:

When a user creates a class, it becomes a data type for his program. This data type includes different primitive types such as int, float, char, etc. Thus, class is referred to as a user defined data type or Composite Data Type.

Related Articles:

This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.

Join Our telegram group to ask Questions

Click below button to join our groups.