Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!