Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composition Vs Inheritance #23

Open
sensorario opened this issue May 3, 2018 · 0 comments
Open

Composition Vs Inheritance #23

sensorario opened this issue May 3, 2018 · 0 comments
Labels
Stale proposta prossima alla cancellazione

Comments

@sensorario
Copy link
Member

Composition over inheritance (or composite reuse principle) in object-oriented programming (OOP) is the principle that classes should achieve polymorphic behavior and code reuse by their composition (by containing instances of other classes that implement the desired functionality) rather than inheritance from a base or parent class. This is an often-stated principle of OOP, such as in the influential book Design Patterns.

@Fuminshou Fuminshou added the Stale proposta prossima alla cancellazione label Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale proposta prossima alla cancellazione
Projects
None yet
Development

No branches or pull requests

2 participants