About this document
Java Polymorphism and Interfaces Assignment by Goutam Prasad is a document available to read on EtoBox.
This document contains 4 questions about polymorphism, abstract classes, interfaces, and method overriding in Java. Question 1 defines an abstract GeometricFigure class with subclasses Rectangle and Triangle that override the getArea() method. Question 2 defines a Calculator interface with basic math methods and a class that implements it. Question 3 finds areas using method and constructor overloading. Question 4 creates Shape subclasses Circle, Triangle, and Square that override parent draw() and erase()
- Author
- Goutam Prasad
- Language
- EN