Java tutorial | Java programming language
Skip to content
When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures.
the five steps to use composion over interface in jwa and oop
javarevisited.blogspot.com

5 Reasons to Use Composition over Inheritance in Java and OOP - Example

Favor composition over inheritance is one of the popular object-oriented design principles, which helps to create flexible and maintainable code in Java and other object-oriented languages. Many times I have seen people suggesting use composition instead of inheritance, in fact, my favorite books like Head First Design Patterns also advocate this design principle. The Head First books have their own way of explaining, why composition is better than inheritance, and though it's long it's...
javarevisited
Javin

Comments

More about this Pin

Board containing this Pin

Selected board cover image
Best Java Courses, Books, Tutorials and Projects
2.5k Pins
2w

Related interests

Java Tutorial
Java Programming Language
Object Oriented Programming
Online Training Courses
List Of Questions
New Class
Learning Design
Interview Questions
Java