Design a class called Meeting to represent meetings in a diary. The Meeting class has the following fields: - time of the meeting represented as string in hours and minutes, - location of the meeting (such as "room 205"), - subject to represent the meeting's subject (such as “Examiner's meeting"). Time, location and subject are stored as strings. The class should include a constructor and the following methods: - setTime: to set the time. - setLocation: to set the location. - setSubject: to set the subject. - getSubject: to return the subject of the meeting. - printDetails: to print all information of a meeting in the following form: Meeting in room 205 at 12:30; Subject: Examiner's meeting. Draw the UML diagram for the class then implement the class and write a test program

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Design a class called Meeting to represent meetings in a diary. The Meeting class has the
following fields:
- time of the meeting represented as string in hours and minutes,
- location of the meeting (such as "room 205"),
- subject to represent the meeting's subject (such as "Examiner's meeting").
Time, location and subject are stored as strings.
The class should include a constructor and the following methods:
- setTime: to set the time.
- setLocation: to set the location.
- setSubject: to set the subject.
- getSubject: to return the subject of the meeting.
- printDetails: to print all information of a meeting in the following form:
Meeting in room 205 at 12:30; Subject: Examiner's meeting.
Draw the UML diagram for the class then implement the class and write a
test program
Transcribed Image Text:Design a class called Meeting to represent meetings in a diary. The Meeting class has the following fields: - time of the meeting represented as string in hours and minutes, - location of the meeting (such as "room 205"), - subject to represent the meeting's subject (such as "Examiner's meeting"). Time, location and subject are stored as strings. The class should include a constructor and the following methods: - setTime: to set the time. - setLocation: to set the location. - setSubject: to set the subject. - getSubject: to return the subject of the meeting. - printDetails: to print all information of a meeting in the following form: Meeting in room 205 at 12:30; Subject: Examiner's meeting. Draw the UML diagram for the class then implement the class and write a test program
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
void method
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning