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](https://s3.amazonaws.com/si.experts.images/answers/2024/09/66df38f2e8dc6_13866df38f27368e.jpg)
- 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
Get step-by-step solutions from verified subject matter experts
