Swipe to navigate through the chapters of this book
After reading Chapter 2 about classes and objects, it is now time shine more light on properties and their types, and also on the options we have to declare functions and what can be done from inside functions. This chapter talks about property and function declarations, but also about an important feature of object-oriented languages, inheritance, through which properties and functions of some class can be altered and redefined by other classes. We also learn about visibility and encapsulation, which help us to improve program structure.
Please log in to get access to this content
To get access to this content you need the following product:
- Classes at Work: Properties and Functions
- Sequence number
- Chapter number
- Chapter 3