Question: 1. You are creating a programmer defined class. Code a field and property for an integer called year. 2. Write a statement that sets the
1. You are creating a programmer defined class. Code a field and property for an integer called year.
2. Write a statement that sets the Enabled property of a control named btnCalc.
3. What relationship does the following snippet demonstrate? public class Order { Customer customer; }
4. Code the automatic property for the instance variable description
5. Write the read only property named DiscountAmount which returns the discountAmount. DiscountAmount is calculated as totalAmount multiplied by discountPercent.
ANSWER IN C# PLEASE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
