Question: Make classes in following hierarchical order by using inheritance as defined in UML Diagram below. Student -rollNo: String -major: String -cgpa: double + Student()

Make classes in following hierarchical order by using inheritance as defined in

Make classes in following hierarchical order by using inheritance as defined in UML Diagram below. Student -rollNo: String -major: String -cgpa: double + Student() + getRollNo(): String + getMajor(): String + getCGPA(): String + updateCGPA(double) + setMajor(String) + toString(): String FullTime Employee -status: String + Full Time Employee() + getStatus(): String + toString(): String Person -name: String -gender: String -dob: String - contactNo: String -address: String + Person() + getName(): String + getGender(): String + getDOB(): String + getContNo(): String +getAddress(): String + calculateAge(): int + setContNo(String) + setAddress() Employee - salary: double + Employee() + getSalary(): String + toString(): String - status: String -timing: String Instructor department String -income: double PartTime Employee + Instructor() + getDepartment(): String getincome(): double + setincome(double) +toString(): String + PartTime Employee() +getStatus(): String + getTimings(): String setTimings(): String + toString(): String Note: Parameters of constructors in each class are not defined in the

Step by Step Solution

3.44 Rating (141 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!