Question: Problem Description [ Keep in mind I am not a golf enthusiast! ] Golfballs are manufactured with special features, depending on the type of material
Problem Description
Keep in mind I am not a golf enthusiast!
Golfballs are manufactured with special features, depending on the type of material used in
construction. Assume there is an attribute material of type String. Some kinds of golfballs
we might have in a bag:
Cork. Core is make of cork.
Gyro. A miniature gyroscope is embedded in the core.
Mercurial. A very heavy liquid metal is in the core
All balls have a method
int determineClubint distance
which applies an algorithm based on ball material and distance desired, and returns a
recommendation as to which club to use for the shot.
Mercurial type balls also have a method
double shootingAngleint distance
to return the angle in radians based on the instance desired.
Draw a UML class diagram to model the hierarchy.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
