What does the principle of 'Favor composition over inheritance' mean in clean code practices?
It means you should inherit classes from base classes instead of creating new ones, which improves the overall structure of your application.
Thatâ€™s incorrect. Favoring composition means preferring to use instances of other classes inside your class instead of relying on inheritance.
Can you describe the potential downsides of overusing inheritance in Java?