Popular questions pertaining to OOP, SOLID, and GOF design patterns
In this section, we will tackle some more difficult questions that require a true understanding of OOP concepts, SOLID design principles, and Gang of Four (GOF) design patterns. Note that this book doesn't cover GOF design patterns, but there are great books and videos out there that are dedicated to this topic. I recommend that you try Learn Design Patterns with Java, by Aseem Jain (https://www.packtpub.com/application-development/learn-design-patterns-java-video).
What is method overriding in OOP (Java)?
Method overriding is an object-oriented programming technique that allows the developer to write two methods (non-static, non-private and non-final) with the same name and signature but different behavior. Method overriding can be used in the presence of Inheritance or Runtime Polymorphism.
In the presence of inheritance, we have a method in the superclass (referenced as the overridden method) and...