Question: Compile and execute the code in java: CollegeCourse.java public class CollegeCourse { / / a class named CollegeCourse - for example a Java 1 Course
Compile and execute the code in java:
CollegeCourse.java
public class CollegeCourse a class named CollegeCourse for example a Java Course
private Student theStudents; a Student array, used to keep track of the students for this course
private Teacher theTeacher; a Teacher object, used to keep track of the teacher for this course
private Assignment theAssignments; an Assignment array, used to keep track of the
assignments for this course
private int courseNumber;
private int numCredits;
private double difficultyRating;
public static final boolean ISREQUIREDFORDEGREE true; a static final variable
public CollegeCourseStudent theStudents, Teacher theTeacher, Assignment theAssignments, int courseNumber, int numCredits, double difficultyRating
this.theStudents theStudents;
this.theTeacher theTeacher;
this.theAssignments theAssignments;
this.courseNumber courseNumber;
this.numCredits numCredits;
this.difficultyRating difficultyRating;
public Student getTheStudents
return theStudents;
public void setTheStudentsStudent theStudents
this.theStudents theStudents;
public Teacher getTheTeacher
return theTeacher;
public void setTheTeacherTeacher theTeacher
this.theTeacher theTeacher;
public Assignment getTheAssignments
return theAssignments;
public void setTheAssignmentsAssignment theAssignments
this.theAssignments theAssignments;
public int getCourseNumber
return courseNumber;
public void setCourseNumberint courseNumber
this.courseNumber courseNumber;
public int getNumCredits
return numCredits;
public void setNumCreditsint numCredits
this.numCredits numCredits;
public double getDifficultyRating
return difficultyRating;
public void setDifficultyRatingdouble difficultyRating
this.difficultyRating difficultyRating;
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
