Question: - 6. Convert the following UML diagram into Java code[35] Student nama id opa ELN ate() qotCDA) etId() tName() tostring() Undergrad Graduate year thesistiti YAA

 - 6. Convert the following UML diagram into Java code[35] Student

- 6. Convert the following UML diagram into Java code[35] Student nama id opa ELN ate() qotCDA) etId() tName() tostring() Undergrad Graduate year thesistiti YAA got Yoar() set ThaniaTitle() tostring() gotthosisritle() string() Test class and sample output is given TestStudents is a driver class to test the above classes public class Teststudents public static void main(string[] args) Student sl - new Student (97000. "Sameer". 3.51); Student S2 = new Student (98000 3.22): Undergrad ul - new Undergrad (99000. Shahid" 2,91, "Junior"): "Algorithms and complexity": System.out.println(sl) System.out.println(2) System.out.println(ul): System.out.println(gl): 3 : Output Student ID: 97000 Name: Sameer GPA 3.51 Student : ID: 98000 Name: GPA 3.22 Undergraduate Student Name: Shahid GPA: 2.91 Year: Junior Graduate student: ID: 200000 Name: Mubin GPA 3.57 Thesis: Algorithms and complexity Press any key to continue

Step by Step Solution

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 Databases Questions!