Question: Implement the following in the .NET Console App. Write the Bus class. A Bus has a length , a color , and a number of

Implement the following in the .NET Console App.

Write the Bus class. A Bus has a length, a color, and a number of wheels.

a. Implement data fields using auto-implemented Properies

b. Include 3 constructors: default, the one that receives the Bus length, color and a number of wheels as input (utilize the Properties) and the Constructor that takes the Bus number (an integer) as input.

Test your class in the main method

c. Create 3 instances of the class using the Constructors you created.

d. Create one more Bus using an Object Initializer.

Dont forget to add comments to your program.

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!