Home / Questions / Why is a class known as composite data type?
Explanatory Question

Why is a class known as composite data type?

👁 112 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

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.