Question
An alternative to having instances of class Radian maintain their value in an instance variable would be to make the class a subclass of class Float. Discuss the advantages and disadvantages of this approach.
Step 1
Typically, such a class would have an instance variable to store the radian value. The alternative approach proposed is to subclass `Radian` from `Float`, which means `Radian` would inherit from `Float` and directly represent a floating-point number. Show more…
Show all steps
Your feedback will help us improve your experience
Watch the video solution with this free unlock.
EMAIL
PASSWORD