Question: Java Pogramming. Create a user-defined course called Course. A course object contins the following attributes: Course ID, Course Name, INstuctor Name, Number of credits, answer

Java Pogramming.

Create a user-defined course called Course. A course object contins the following attributes: Course ID, Course Name, INstuctor Name, Number of credits, answer to wheter it is a graduate course.

The course class must also provide get and set methods for the instance variables Course Name, answer to whether it si a graduate course. The course class would also include the toString() and equals() method.

Finally create another clas called CourseTest with the main() method. INside the main() method create two courses representing Csci 101 and Csci 102. Demonstrate toString() and equals() method.

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!