PinnedNeha RavnangComparison: Inheritance & PolymorphismJava is an object-oriented artificial language since it provides Java developers with the flexibility to implement objects as real-life…Jun 8, 202214Jun 8, 202214