Beginner Swift
Q17 / 100

What is a computed property?

Correct! Well done.

Incorrect.

The correct answer is B) A property with get (and optionally set) accessors that compute a value rather than storing it

B

Correct Answer

A property with get (and optionally set) accessors that compute a value rather than storing it

Explanation

var area: Double { get { return width * height } } computes area dynamically each time it's accessed.

Progress
17/100