Question: In c# Begin an empty console application. Create your code in the order shown below. Create a new class Course that represents data about a

In c#

Begin an empty console application. Create your code in the order shown below.

Create a new class "Course" that represents data about a college course. This class should

have

a string to hold a short description of the course

an integer "course number"

an integer "credit hours

a string "prefix" (such as CSE or CGDD)

Remember to use appropriate scope; your attributes should be private and then provide public get/set accessors for each field.

Create a constructor that takes two strings and two integers (representing values for each attribute)

a. Initialize each variable within the class using these parameters to the constructor

5. Create a constructor that takes in no parameters a. Initialize each variable within the class to defaults of your choosing

Override the ToString() method to output all field names and values of any instance.

In the Main Method, create two instances of the course class; one should use the default

constructor (with no parameters) and one should use the 4-parameter constructor.

Print each course to the screen to show them to the user.

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!