Question: write the java code for following uml write a driver test class that does the following 1. Create a student object s with your name

write the java code for following uml
write a driver test class that does the following
1. Create a student object s with your name and address
2. Print the information of object s
3. Add 6 courses with grade for student s
4. Create one teacher t with one of your teacher name and address
5. Print the information of object t
6. Set two courses that t teaches
7. Print the courses that teacher t teaches
Course Taken -courseName: String -grade: int *Course Taken(courseName:String, grade: int) *getGrade():int +toString():String Person -name: String -address : String +Person(name:String, address:String) *getName():String *getAddress():String *setAddress(address:String):void +toString():String Student -numCourses: int -courses: ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
