Open Objects
In this lesson, we'll learn about the functionality of open objects in Reason.
We'll cover the following
The Restrictions of Closed Objects
The objects we’ve dealt with until now have been closed objects. In closed objects, we cannot define public functions unless they have been declared in the type definition. Any new members in the object’s implementation would have to be values or private methods.
For example, take a look at the circle
type below:
Get hands-on with 1400+ tech skills courses.