Q3) Declare a method display() in the university class and override the display() method in all the subclasses. In the c
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Q3) Declare a method display() in the university class and override the display() method in all the subclasses. In the c
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;
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!