Multiple choice technology programming languages

A class is

  1. Data Type

  2. Abstract Type

  3. User Defined Type

  4. All of these options

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

In object-oriented programming, a class is indeed a user-defined type that encapsulates data and behavior. Unlike primitive data types (int, float, char) which are built into the language, classes are defined by programmers to model real-world entities or abstract concepts. Classes combine data attributes and methods into a single reusable unit.