Question: For this homework, in java you will be creating 2 class files and one file for client (driver) code. I want you to think about
For this homework, in java you will be creating 2 class files and one file for client ("driver") code. I want you to think about one of your hobbies (perhaps one that you described in your personal introduction during the first week of this course). How would you go about modeling your hobby in code? Remember, your code does not need to provide an exhaustive representation of your hobby. How many features and how much functionality your code provides will be dictated by what you want your code to do. For this assignment, you are just going to want to select a few representative features and actions for your hobby. You are also not required to have an abundance of methods in the classes you create. Just include whatever methods you need to demonstrate some aspect of your hobby.
Examples:
- if you are a mountain climber, you might want to keep track of mountains you have climbed. You would probably need a Mountain class. You might also want a way to keep track of the equipment you'd need for a giving outing or a way to rank climbing partners.
- If you are a music lover, you might want a Group class to keep track of your favorite bands (requiring a Musician or Artist class to store band members).
- If you are a sports fan, you might want a Game class along with a Team class or a Team class and a Player class (where you might store player stats).
REQUIREMENTS:
1. Create 2 related classes that you will use in the client code you write demonstrating some aspect of one of your hobbies. Since you are only creating 2 classes, you will need to make some decisions about what aspects of the hobby you want to work with for this assignment. You won't be able to cover everything (this might feel quite limiting, but it should also help you focus on some essential features).2. Create the Client Code class (which will have your main method)
Hobby can be sport related.
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
