Property Functions

Learn about property functions that return values and property functions that are used in the assignment.

Property functions that return values

As a simple example, let’s consider a rectangle struct that consists of two members:

Get hands-on with 1000+ tech skills courses.