Question: Java Inheritance and Polymorphism Problem -------------------------- I have included images of the problem and the solutions, what I need are explanations for each problem. As
Java Inheritance and Polymorphism Problem --------------------------
I have included images of the problem and the solutions, what I need are explanations for each problem. As in depth as possible, especially with the runtime error vs compile error.
Thanks so much.

1. Fo 2/Fie 3/Fum 3
2.Compile error
3.Fo 2/Fee 3
4.Fie 3/Fum 3
5. Compile Error
6.Fee 3
7.Fee 1/Fo 3
8.Runtime error
1) (7 Pts) Given the following class definitions, write on each dashed line "compile error" or "runtime error" if the statement next to the line results in an error, or what is output when the statement executes. If it outputs more tharn one line, use a slash to indicate a line break (eg, "Sip 1/Drink 3"). public class Fo 1 public class Fee extends Fo public void method2) public void method1) System.out.println("Fo 2") method3O; System.out.println("Fee 1") super.method3); public void method30) public void method3) System.out.println("Fo 3") System.out.println("Fee 3") public class Fum extends Fo public void method30) public class Fie extends Fum public void method1) System.out.println("Fum 3"); System.out.println("Fie 1") public void method3) System.out.println("Fie 3") super.method3); Fum var1 new Fie Object var2new Fum Fo var3-new Fee); var1.method2; var2.nethod2); var3.method2 var1.method3; var2.nethod3); var3.method3 ((Fee) var3) .method10); ((Fie) var3) .method10)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
