Question: please give me the answer with java code . as soon as ppssible Design as class Rectangle and Circle. Both are derived from base class
please give me the answer with java code . as soon as ppssible
Design as class Rectangle and Circle. Both are derived from base class Shape. Add method (getArea()) to calculate area and return it. The member variable for Circle and Rectangle will be assigned in their respective constuctor.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
