Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# (please include comments in your code and screenshot your output) Exercise 15-2 is the exercise I need. However, you will have to complete Exercise

C# (please include comments in your code and screenshot your output)

Exercise 15-2 is the exercise I need. However, you will have to complete Exercise 15-1 first before you can work on Exercise 15-2. So in is question, you just post the solution of exercise 15-2 (there is no need to separate 2 exercises).

image text in transcribed

Chapter 15 How to work with interfaces and generics 505 rcise 15-1 In his e he Cloneable interface. This application creates a List that plmof a pre-defined Customer object and displays the cloned Implement the ICloneable interface l create an application that includes a Customer class that Exercise 15-2 Implement an enumerator d dispays to tht this application easier to In this exercise, you'll modify your solution to exercise 15-1 so the clones stored in a CustomerL.ist object that implements an enumerator I. If it isn't already open, open the application in the C:C# 2015Cha are customers in a list box as shown below. To make develop. we'll give you the starting form and classes. The design of the Clone Customer form CloneCustomer directory Customerlist c (This class wasn't used by the previous exercise.) To do that, imn GetEnumerator method as described in figure 15-11 Modify the code in the form class so it stores the cloned Customer objects in CustomerL ist object rather than in a ListcCustomers object. 2. Implement the lEnumerable interface for the Cu ? Clone Cuotomer objects in a 4. Run the application and test it to be sure it works properly Development procedure l. Open the application in the CVC# 201 5Chapter l5CIoeCustomer directory. 2. Display the code for the form, and notice that the Load event handler creates a Customer object, stores it in a variable named customer, and displays the customer in the label at the top of the form. Modify the Customer class so it implements the ICloneable interface Add an event handler for the Click event of the Clone button. This event handler should use the methods in the Validator class to check the value in the Copies text box to be create a List interface for the Cu ? Clone Cuotomer objects in a 4. Run the application and test it to be sure it works properly Development procedure l. Open the application in the CVC# 201 5Chapter l5CIoeCustomer directory. 2. Display the code for the form, and notice that the Load event handler creates a Customer object, stores it in a variable named customer, and displays the customer in the label at the top of the form. Modify the Customer class so it implements the ICloneable interface Add an event handler for the Click event of the Clone button. This event handler should use the methods in the Validator class to check the value in the Copies text box to be create a List

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Constraint Databases

Authors: Peter Revesz

1st Edition

1441931554, 978-1441931559

More Books

Students also viewed these Databases questions

Question

b. Explain how you initially felt about the communication.

Answered: 1 week ago