Question: In Intellij IDEA 2 0 2 4 . 1 Define a class named Course to store information on a university course. Each course object should

In Intellij IDEA 2024.1
Define a class named Course to store information on a university course. Each course object should store:
A course title (a String)- no default, must be given when creating the course
The number of credits for the course (an int)- default is 5
The name of the instructor for the course (a String)- default is "Staff"
Course level (a String)- either "Grad" or "Undergrad"; default is "Undergrad"
Your class should have public methods which provide access to each of the fields and public methods which allow changes to each of the fields. You class should have two constructors. One with all four fields and one with only the course name. Each constructor should initialize all four fields.
In your program, instantiate two course objects: 1 using the single parameter constructor picking your own value for the course title, one using the full constructor picking your own values for the fields.
Now define a student class picking your own fields and appropriate constructors. Remember to include all appropriate methods Instantiate at least two student objects. The student objects do not need to be linked to the course objects.
To turn in your program, zip (compress) the directory created with your IntelliJ project and turn in the zipped (compressed) file.
 In Intellij IDEA 2024.1 Define a class named Course to store

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!