Which Java class programming technique shows the use of polymorphism?

Since both the definition are different in those classes, calc_grade() will work in different way for same input from different objects. Hence it shows polymorphism.

Sizin İçin Seçtik  What is inheritance in Java with example?

Leave a Reply

Your email address will not be published. Required fields are marked *