Hands-On Object-Oriented Programming with Kotlin
eBook - ePub

Hands-On Object-Oriented Programming with Kotlin

Build robust software with reusable code using OOP principles and design patterns in Kotlin

Abid Khan, Igor Kucherenko

Buch teilen
  1. 370 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

Hands-On Object-Oriented Programming with Kotlin

Build robust software with reusable code using OOP principles and design patterns in Kotlin

Abid Khan, Igor Kucherenko

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Über dieses Buch

Learn everything you need to know about object-oriented programming with the latest features of Kotlin 1.3

Key Features

  • A practical guide to understand objects and classes in Kotlin
  • Learn to write asynchronous, non-blocking codes with Kotlin coroutines
  • Explore Encapsulation, Inheritance, Polymorphism, and Abstraction in Kotlin

Book Description

Kotlin is an object-oriented programming language. The book is based on the latest version of Kotlin. The book provides you with a thorough understanding of programming concepts, object-oriented programming techniques, and design patterns. It includes numerous examples, explanation of concepts and keynotes. Where possible, examples and programming exercises are included.

The main purpose of the book is to provide a comprehensive coverage of Kotlin features such as classes, data classes, and inheritance. It also provides a good understanding of design pattern and how Kotlin syntax works with object-oriented techniques. You will also gain familiarity with syntax in this book by writing labeled for loop and when as an expression. An introduction to the advanced concepts such as sealed classes and package level functions and coroutines is provided and we will also learn how these concepts can make the software development easy. Supported libraries for serialization, regular expression and testing are also covered in this book. By the end of the book, you would have learnt building robust and maintainable software with object oriented design patterns in Kotlin.

What you will learn

  • Get an overview of the Kotlin programming language
  • Discover Object-oriented programming techniques in Kotlin
  • Understand Object-oriented design patterns
  • Uncover multithreading by Kotlin way
  • Understand about arrays and collections
  • Understand the importance of object-oriented design patterns
  • Understand about exception handling and testing in OOP with Kotlin

Who this book is for

This book is for programmers and developers who wish to learn Object-oriented programming principles and apply them to build robust and scalable applications. Basic knowledge in Kotlin programming is assumed

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist Hands-On Object-Oriented Programming with Kotlin als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu Hands-On Object-Oriented Programming with Kotlin von Abid Khan, Igor Kucherenko im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Computer Science & Programming. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

Jahr
2018
ISBN
9781789619645

Object-Oriented Patterns in Kotlin

A pattern is a concept that relates to software architecture. By architecture, we mean a high-level structure of programming code that includes elements and relationships. It's important to make the right decision when it comes to a pattern that will be used to solve everyday problems. This is because choosing and implementing a pattern is a one-time procedure that is expensive to change.
Before we begin, let's review the topics we will be looking at in this chapter:
  • What design patterns are and how they help
  • Types of design patterns
  • Creational patterns
  • Structural patterns
  • Behavioral patterns

Technical requirements

To run the code from this chapter, we just need IntelliJ IDEA as well as Git installed. This chapter doesn't require any additional installations.
You can find examples from this chapter on GitHub at the following link: https://github.com/PacktPublishing/Hands-On-Object-Oriented-Programming-with-Kotlin/tree/master/src/main/kotlin/Chapter06.

What design patterns are and how they help

The process of software development involves creating new classes and interfaces, building an inheritance hierarchy, and establishing communication between objects. Object-oriented programming helps us to build an abstraction of entities and processes using extremely powerful concepts such as encapsulations, composition, inheritance, polymorphism, and so on and so forth.
We should understand that a developer writes code to solve one or more sets of problems. Software designing is a process of describing how to apply the concepts of object-oriented programming together to implement a solution.
An implementation of a commonly occurring solution is a software design pattern if it can be reused in many different situations. The most common reasons to use a design template are as follows:
  • Acceleration of the development process
  • Increasing the quality of code
  • Decreasing communication time between developers
Reusing patterns helps us to prevent common issues, which is why we can increase the quality of code. It also improves readability and understanding for developers who are familiar with a pattern that decreases the time for communication and code review. As a result, we can speed up the development process.
Software design patterns in object-oriented programming show relationships and communic...

Inhaltsverzeichnis