Kotlin ClassesLesson 23Free preview
Kotlin Class Functions
This lesson is part of Kotlin · All levels
Summary
This lesson discusses member functions within Kotlin class. Members define the action or ability that an object can perform. Developers will learn the use of 'this' reference, method naming, and extension functions.
Key points
- A function defined within a class is called a member function
- The keyword 'this' refers to the current instance of an object
- Extension functions allow the addition of new methods to an existing class without having to change the original code
- Infix functions allow method designation without point and curve marks
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.