Question: Discuss three proper ways in which you can assign superclass and subclass references to variables of superclass and subclass types.

Discuss three proper ways in which you can assign superclass and subclass references to variables of superclass and subclass types.

Step by Step Solution

3.51 Rating (168 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

1 Assigning a superclass reference to a superclass variable 2 Assigning a subclass r... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java How to Program Early Objects Questions!