Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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: ArrayListStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started