...

/

Challenge 2: Implement and Override the Method

Challenge 2: Implement and Override the Method

Can you override the getArea() method in a derived class of the base class? A solution is placed in the "solution" section to help you, but we would suggest you try to solve it on your own first.

Problem Statement #

Write a method in a Circle class which overrides a method in a Shape class i.e. getArea() and returns the area of a circle.

The value ...