Solution Review: Advancing the Shapes Analysis
This lesson discusses the solution to the challenge given in the previous lesson.
We'll cover the following...
We'll cover the following...
From line 8 to line 11, we implement the Triangle type: from the formula for the area, we see that it needs two fields base and height, both of type float32.
See the implementation of PeriInterface from line 17 to line 18: it needs a function Perimeter(), that also returns a float32.
From line 48 to line 50, the Triangle ...