Introduction to Object-Oriented Programming

Object-oriented programming is one of the most famous and practical software-development techniques. Traditional procedural programming is tedious and prone to error, especially when it comes to the development of large and complex applications. In this chapter, we will provide a quick introduction to object-oriented programming and its benefits. We will also try to understand why the object-oriented approach is easy to grasp and how it is similar to human nature. We will learn about classes, objects, and constructor declarations. By the end of this chapter, we will be familiar with properties, behaviors, function overloading, the concept of data classes, and how data classes can help to improve application development.

The following topics will be covered in this chapter:

  • Object-oriented programming
  • Syntax of class declaration
  • The difference between classes and objects
  • Properties and why they are special in Kotlin
  • Constructors and their types
  • Function declaration and function overloading
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.178.9