Multiple choice

Class is best described as

  1. a user defined data type

  2. a data type

  3. a template for objects

  4. all of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

A class is fundamentally a template or blueprint that defines the structure and behavior of objects. While it's also a user-defined data type, 'template for objects' best captures its role in creating instances.