Explain what is Composition over Inheritance?
- Composition over Inheritance is a design principle that eliminates the use of composition for code reuse.
- Composition over Inheritance is a design principle that eliminates the use of inheritance for code reuse.
- Composition over Inheritance is a design principle that favors class inheritance over object composition for code reuse.
- Composition over Inheritance is a design principle that favors object composition over class inheritance for code reuse.
Composition over Inheritance is a design principle that favors object composition over class inheritance for code reuse. It allows for greater flexibility and maintainability in code design.
Loading...