Introduction

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

In the previous lesson, you learned the properties of Kotlin objects and how to use them to solve specific problems. You also learned how to use them to initialize the class.

In this lesson, you’ll learn more about class initialization, constructors, and initializers. By the end of a lesson, you’ll be able to:

  • Describe the purpose of a constructor.
  • Explain the purpose of a secondary constructor.
  • Define the purpose of an initializer block.
See forum comments
Download course materials from Github
Previous: Quiz: Use Properties Next: Instruction