Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions

Question

Write the difference between sexual and asexual reproduction.

Answered: 1 week ago

Question

What your favourite topic in mathematics?

Answered: 1 week ago

Question

Briefly describe vegetative reproduction in plants.

Answered: 1 week ago

Question

LO1 Understand risk management and identify its components.

Answered: 1 week ago