Question: } // Suppose you have two classes defined like this: public class Fraction { // some stuff in here all compiles fine public class
} // Suppose you have two classes defined like this: public class Fraction { // some stuff in here all compiles fine public class Signed Fraction extends Fraction { // some stuff in here all compiles fine } // Then in main you define one of each Fraction f = new Fraction(); SignedFraction sf = new SignedFraction(); Select which one of the following statements are true A: f = sf; // IS THE LEGAL STATMENT B: sff: // IS THE LEGAL STATEMENT C: NEITHER are legal D: BOTH are legal; A OB O 0
Step by Step Solution
There are 3 Steps involved in it
Lets carefully analyze the given scenario Class Hierarchy java public class Fraction some stuff publ... View full answer
Get step-by-step solutions from verified subject matter experts
