✏️ Explanatory Question
✅ Yes.
A class is composite because it groups together multiple variables (fields) and methods.
A class is also a user-defined type because it is defined by the programmer (not provided as a built-in primitive).
Example:
class Book {
String title; // field
String author; // field
int pages; // field
}
Book is both:
A composite type (made up of String and int)
A user-defined type (created by the programmer).