Abstract
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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Peter Späth
About this chapter
Cite this chapter
Späth, P. (2019). Classes at Work: Properties and Functions. In: Learn Kotlin for Android Development. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4467-8_3
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4467-8_3
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-4466-1
Online ISBN: 978-1-4842-4467-8
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)