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

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!