Question: Suppose that a class named Direction has a toString method that returns an angle, for example, 9 0 degrees. Suppose that a class named
Suppose that a class named Direction has a toString method that returns an angle, for example, degrees". Suppose that a class named Vector extends Direction and overrides its toString method to return more information, for example, degrees and meters".
If I instantiate a Vector like so:
Direction v new Vector;
What will its toString return?
Question options:
degrees and meters"
degrees"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
