Skip to Main Content
Kotlin Design Patterns and Best Practices - Third Edition
book

Kotlin Design Patterns and Best Practices - Third Edition

by Alexey Soshin
April 2024
Intermediate to advanced content levelIntermediate to advanced
474 pages
9h 39m
English
Packt Publishing
Content preview from Kotlin Design Patterns and Best Practices - Third Edition

2

Working with Creational Patterns

In this chapter, we will explore how classic creational patterns are implemented using Kotlin. These patterns focus on when and how you create objects. For each design pattern, we will discuss its purpose and how Kotlin facilitates its implementation.

The topics covered in this chapter include the following patterns:

  • Singleton
  • Factory Method
  • Abstract Factory
  • Builder
  • Prototype

By mastering these design patterns, you will improve your ability to manage objects, adapt to changes, and write maintainable code.

Before we proceed, it’s important to acknowledge that not all of the design patterns described in this and subsequent chapters may be useful to you. However, it is still valuable to be thorough and cover ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Kotlin Design Patterns and Best Practices - Second Edition

Kotlin Design Patterns and Best Practices - Second Edition

Alexey Soshin
Programming Kotlin

Programming Kotlin

Venkat Subramaniam
Kotlin in Action

Kotlin in Action

Svetlana Isakova, Dmitry Jemerov

Publisher Resources

ISBN: 9781805127765Supplemental Content