The details of each work out must be stored in a class called WorkOut object shown in the class diagram. Use the class diagram to code the WorkOut object.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 9PE
icon
Related questions
Question
The details of each work out must be stored in a class called WorkOut object shown in the
class diagram. Use the class diagram to code the WorkOut object.
WorkOut
start: DateTime
- end : DateTime
- description : string
-
level : integer
points: real
-
numWorkOuts: integer
+ LOW: integer = 4
+ MEDIUM : integer =8
+ Constructor (p: real, n:integer)
+ Constructor (s:string, e:string, d:string, 1:integer)
+ get Points () : real
+ getNumWorkOuts (): integer
long getMinutes ()
+ int getStars ()
+ changeDescription ()
+ toString(): string
Transcribed Image Text:The details of each work out must be stored in a class called WorkOut object shown in the class diagram. Use the class diagram to code the WorkOut object. WorkOut start: DateTime - end : DateTime - description : string - level : integer points: real - numWorkOuts: integer + LOW: integer = 4 + MEDIUM : integer =8 + Constructor (p: real, n:integer) + Constructor (s:string, e:string, d:string, 1:integer) + get Points () : real + getNumWorkOuts (): integer long getMinutes () + int getStars () + changeDescription () + toString(): string
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Data members
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
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,