Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need some help with exercise 1 4 - 1 . The class is C# Programming. Thanks! Chapter 1 4 How to work with inheritance
I need some help with exercise The class is C# Programming. Thanks! Chapter How to work with inheritance xercise Create a Customer Maintenance application that uses inheritance In this exercise, you'll create a Customer Maintenance application that uses classes with the inheritance features presented in this chapter. This application works with two types of customers: retail customers and wholesale customers. Both customer types are derived from a Customer base class, both extend the Customer class by adding a property, and separate forms are used to add the two types of customers. To make this application easier to develop, we'll give you the starting forms and classes. The design of the Customer Maintenance form Customer Catomen The design of the Add Customer forms dd Retal Cuslomer Corpary Home phone Open the project and create the derived classes l Open the application in the C:C# Chapter CustomerMaintenance directory Display the Customer Class and modify the GetDisplayText method so it's overridable. Add a class named WholesaleCustomer that inherits the Customer class. This new class should add a string property named Company. It should also provide a default constructor and a constructor that accepts four parameters first name, last name, email, and company to initialize the class pr constructor should call the base class constructor to initialize the pr defined by that class. Finally, this class should override the GetDisplayText method to add the company name in parentheses to the end of the display string, as in this example: operties. This operties John Mendez, jmendez@msystem.com Mendez Systems
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