Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CLASS CODE Define a class to represent a high school course. Your class should include methods to provide the following information about the course: C
- CLASS CODE
- Define a class to represent a high school course. Your class should include methods to provide the following information about the course:
- Course title
- Teacher name
- Room number
- Period
- Is a particular student enrolled in the course?
- Does this course meet at the same time as another course?
- Does this course have the same teacher as another course?
- Think about what variables, methods, and constructors your class will need
- Extend your high school course class by adding a class constructor to create a course from user input.
- Use multiple constructors, if appropriate and re-use code as much as possible. i.e. have the constructors call one main one, if possible.
- Add a toString method that outputs a reasonable reflection of a course.
- Add a field that represents the students in the class.
- Add a addStudent method.
- CLIENT CODE
- Create a client program that creates multiple instances of your class.
- Your client code should call each method in the class and display results
"Create any class like math, science, or English. Make up a random room number or student names, just have everything make sense. "
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started