Challenge: Advancing the Shapes Analysis
This lesson brings you a challenge to solve.
We'll cover the following...
Problem statement
Expand the same program given below, define a type Triangle
, and let it implement
AreaInterface
. Test this by calculating the area of a specific triangle.
Area of a triangle = ...