In this chapter, we have explored the four main pillars of object-oriented programming—inheritance, encapsulation, polymorphism, and abstraction. We started with inheritance and its benefits in software development. We then discussed the different types of inheritance and their implementations. We also discussed the concept of overriding and encapsulation, and we learned that functional programming is not suitable for advanced application development. Then, we had a detailed discussion about abstraction and its advantages, and we looked at the concept of interfaces. In the next chapter, we will discuss some advanced concepts to do with classes that make the Kotlin language unique.
Germany
Slovakia
Canada
Brazil
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
United States
Great Britain
India
Spain
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
France
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Australia
Japan
Russia