Question
Implement the following in the .NET Console App. Code in C# Write the Mask class. A Mask has a color, a type (for kids, for
Implement the following in the .NET Console App.
Code in C#
Write the Mask class. A Mask has a color, a type (for kids, for adults) and a price.
a. Implement data fields using auto-implemented Properies
b. Include 3 constructors: default, the one that receives the Mask color, type and a price as input (utilize the Properties) and the Constructor that takes the Mask material (a String) 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 Mask using an Object Initializer.
Dont forget to add comments to your program.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started