Solution Review: Implement and Override Method
This review provides a detailed analysis to solve the 'Implement and Override the Method in the Derived Class' challenge.
We'll cover the following...
We'll cover the following...
Solution
Explanation
The solution is very simple.
- Line 29 - 31: The
getArea()method is overridden in theCircleclass to calculate the area of the circle.
- The area is calculated using the conventional formula:
...