Beginner Object-Oriented Programming Concepts
Q37 / 100

What is a "property" (or "field") of a class?

Correct! Well done.

Incorrect.

The correct answer is A) A piece of data associated with a class or its instances

A

Correct Answer

A piece of data associated with a class or its instances

Explanation

Properties (fields/attributes) represent the state stored by an object, such as a Person's name or age.

Progress
37/100