Page 1 of 1

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
by answerhappygod
Q3 Declare A Method Display In The University Class And Override The Display Method In All The Subclasses In The C 1
Q3 Declare A Method Display In The University Class And Override The Display Method In All The Subclasses In The C 1 (54.36 KiB) Viewed 96 times
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;