08.05. Composition

Composition Eclipse: Oxygen Java: 1.8   The composition is the core concept of object-oriented programming. The composition is the design technique to implement a has-a relationship between different types of objects/classes. We can use Java inheritance or object composition in Java for code reuse. Difference between inheritance and composition? In Java, Inheritance is suitable only when …

08.05. Composition Read More »