Question: Need help with Java please. Question: 1. Suppose the class Sub extends the class Sandwich. Which of the following assignments are legal? Sandwich x- new
Question: 1. Suppose the class Sub extends the class Sandwich. Which of the following assignments are legal? Sandwich x- new Sandwich0: Sub y new Sub0: (2) y x (3) y new Sandwich0; (4) x new Sub0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
