Delegation design pattern in Java vs Kotlin

Sachin Kumar
2 min readJul 12, 2020

In this article, we are going to discuss the delegation design pattern in Java vs Kotlin. Let’s first understand what exactly the delegation design pattern is:

It is an object-oriented design pattern that allows object composition to achieve the same code reuse as an inheritance.

Delegation makes composition as powerful for reuse as an inheritance. In this…

--

--

Sachin Kumar

Senior Java Backend Dev | Expertise in Java Microservices, Spring Boot Framework & Android apps development.