Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercises: Exercise 1-UML Digram: Let us suppose we have five classes which are the Person, Student, Employee, Faculty, and Staff Classes. Moreover, let us make

image text in transcribed
Exercises: Exercise 1-UML Digram: Let us suppose we have five classes which are the Person, Student, Employee, Faculty, and Staff Classes. Moreover, let us make Student and Employee as subclasses of Person, and make Faculty and Staff as subclasses of Employee. Please create a UML digram for those classes based on the following instructions: a) The Person class has the following private properties: name: String and its accessor and mutator methods b) The Student class has the following methods and private properties: studentid: long Constructor with two arguments: name, studentld Override toString() in the Student class to return the name and studentid c) The Employee class has the following private properties: employeeld: int and its accessor and mutator methods d) The Faculty class has the following methods and private properties: rank: String Constructor with three arguments: name, employeeld, rank Override toString() in the Faculty class to return the name, employeeld, and rank e) The Staff class has the following methods and private properties: title: String Constructor with three arguments: name, employeeld, title Override toString() in the Staff class to return the name, employeeld, and title Homework: Homework 1- Implement the previous five classes: a) Create the previous five classes in Exercise 1 in Java. (Hins: use the UML digram) b) Write a test program to creates objects from the Student, Faculty and Staff classes, and then invokes toString() methods for all three

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

Guide To Client Server Databases

Authors: Joe Salemi

2nd Edition

1562763105, 978-1562763107

More Books

Students also viewed these Databases questions