1. What is the difference between a superclass and a subclass? 2. Since a subclass does not inherit the superclass’s constructors and private data fields, how does the subclass’s constructor...


1. What is the difference between a superclass and a subclass?


2. Since a subclass does not inherit the superclass’s constructors and private data fields, how does the subclass’s constructor initialize those data fields?


3. Must a constructor’s definition in a subclass explicitly invoke a constructor in the superclass by using super? Explain.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here