Working with objects
Getting end users to grasp the concept of data structures is no easy task. While the concept of objects having properties (for instance, a customer having a first name and a last name) is usually easy to convey, you probably would not bother end users with things like data encapsulation and object methods.
Because of this, it might be useful to hide the intricacies of data access from your end user; if a user want to access a customer's first name, they should be able to write customer.firstname, even if the actual property of the underlying object is protected, and you would usually need to call a getFirstname() method to read this property. Since getter functions typically follow certain naming patterns, our parser can automatically ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access