Neelneelchikhal.hashnode.devยทJul 7, 2024Design Pattern - 3Decorator design pattern saves us from object explosion. Composition is a design technique in OOP which defines has-a relationship between objects. public class Job{ // methods and properties... } Person HAS-A Job public class Person{ privat...decorator design patternAdd a thoughtful commentNo comments yetBe the first to start the conversation.