Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CANADIAN UNIVERSITY DUBAI Your portal to Canadian education School of Engineering Applied Science and Technology Person name: String 4 setName (String newName): void * getName(

image text in transcribed
CANADIAN UNIVERSITY DUBAI Your portal to Canadian education School of Engineering Applied Science and Technology Person name: String 4 setName (String newName): void * getName( ): String writeOutput( ): void . hasSameName(Person otherPerson) ) : boolean Student - studentNumber: int + reset (String newName, int newStudentNumber) : void getStudentNumber( ): int setStudentNumber (int newStudentNumber) : void + writeOutput( ): void + equals (Student otherStudent) : boolean Undergraduate - level: int + reset(String newName, int newStudentNumber. int newlevel) : void + getLevel( ): int +. set' evel(int newlevel) : void + +Output( ): void + ed 's (Undergraduate otherUndergraduate) : boolean Figure 1: UML diagram shows the relationship among the classes Person, Student and Undergraduate Part A: Based on figure I answer the following questions: 1- What is the relationship between the three classes? 2- List the overridden methods, if any available. 3- List the overloaded methods, if any available. 4- Explain how an overridden parent method can be invoked form the child class

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Programming questions