October 2018
Intermediate to advanced
370 pages
9h 15m
English
Every class contains attributes and behaviors. Attributes are the characteristics of the class that help to distinguish it from other classes. Behaviors are the tasks that an object performs. A person's attributes, for example, include their age, name, and height, while their behaviors include the fact that a person can speak, run, walk, and eat. In Kotlin, attributes are called properties and behaviors are called functions. Properties are presented with different data types, and behaviors are described using functions. When we map a Person class in Kotlin, it may look as shown in the following class diagram:

The properties ...
Read now
Unlock full access