asked in Inheritance by (58.6k points)

1 Answer

Both Polymorphism and Inheritance goes hand on hand, they help each other to achieve their goal. Polymorphism allows flexibility, you can choose which code to run at runtime by overriding.  See the detailed answer for more details.
answered by (58.6k points)

Java Interview Questions and Answers 2018

...