Hands-On Object-Oriented Programming with Kotlin
- Length: 370 pages
- Edition: 1
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2018-10-31
- ISBN-10: 1789617723
- ISBN-13: 9781789617726
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
Table of Contents
- Getting Started with Kotlin
- Introduction to object-oriented programming
- Four Pillars of Object Oriented Programming
- Classes: Advanced Concepts
- Data Collection, Iterators and Filters
- Object-Oriented Patterns in Kotlin
- Coroutines: A lightweight thread?
- Interoperability
- Regular expression and Serialization in Kotlin
- Exception handling
- Testing in Object Oriented Programming with Kotlin