Month: July 2017

Lesson 28: OOP – private and public access modifiers in Kotlin

One of the fundamental principles of object-oriented programming is encapsulation, this is achieved by grouping a series of methods and properties within a class. In Kotlin when we implement a class by default all properties and methods are public type. A public method or property can be accessed from where we define an object of that [...]

Read More

Lesson 27: Class collaboration in Kotlin Language

Normally a problem solved with the methodology of object oriented programming does not involve a single class, but there are many classes that interact and communicate. We will pose problems by separating activities into two classes. Problem 1 A bank has 3 clients that can make deposits and withdrawals. Also, the bank requires that at the [...]

Read More