- Exercises
In this exercise, you will extend the MyDistance class from the example in the previous lesson.
Task 1
Extend MyDistance
from the previous example to support the following units:
-
Feet (ft)
-
Mile (mi)
Tip: Define a good suffix for these units as well.
Access this course and 1400+ top-rated courses and projects.