Question: Determine the output and draw reference variables and object. be advised this is Java and it has to do with polymorphism 3. Determine the output

Determine the output and draw reference variables and object. be advised this is Java and it has to do with polymorphism
3. Determine the output from the following code. public class Holiday public int j 10; public int getJ) System.out.println("Holiday"+ turn public class Easter extends Holiday public int j- 2018; public int getJ) System.out.println("Easter "+ j); return) j; public static void main(String [ ] args) Holiday h new Easter); System.out.println( h.j+"+h.getJ)): Easter hh (Easter) h; System.out.println( hh.j++hh.getJ))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
