Q3) Declare a method display() in the university class and override the display() method in all the subclasses. In the c
Posted: Sun May 15, 2022 12:58 pm
Q3) Declare a method display() in the university class and override the display() method in all the subclasses. In the class CS_Dept, show how the call to a base class contrcutor is made. Q4Suppose that we have the following legal declarations and assignments : University u1 = new University(); CS_Dept cs = new CS_Dept(); Student s1 = new Student(); Based on the above mentioned, which of the following assignments are legal, and why or why not? ► sl=ul; sl = CS; cs = sl;