Book description
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
- Title Page
- Copyright and Credits
- Dedication
- Packt Upsell
- Contributors
- Preface
-
Getting Started with Kotlin
- Technical requirements
- Introduction to Kotlin
- Data types in Kotlin
- Null safety, type casting, Pair, and Triple
- Flow controls
- Introduction to loops
- What is a function?
- Summary
- Questions
- Further reading
- Introduction to Object-Oriented Programming
- The Four Pillars of Object-Oriented Programming
- Classes - Advanced Concepts
-
Data Collection, Iterators, and Filters
- Technical requirements
- Range
- Arrays
- Lists in Kotlin
- Filters and collection functions
- Summary
- Questions
- Further reading
- 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
- Assessments
- Other Books You May Enjoy
Product information
- Title: Hands-On Object-Oriented Programming with Kotlin
- Author(s):
- Release date: October 2018
- Publisher(s): Packt Publishing
- ISBN: 9781789617726
You might also like
book
Functional Programming in Kotlin
Master techniques and concepts of functional programming to deliver safer, simpler, and more effective Kotlin code. …
video
Advanced Kotlin Programming
Designed for developers who already have a basic understanding of Kotlin, this video course examines some …
book
Kotlin Programming By Example
Enhance your Kotlin programming skills by building 3 real-world applications About This Book Build three full-fledged, …
book
Kotlin Cookbook
Use Kotlin to build Android apps, web applications, and more—while you learn the nuances of this …