Answered step by step
Verified Expert Solution
Link Copied!

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 14-1. The class is C# Programming. Thanks! Chapter 14 How to work with inheritance 475 xercise 14-1 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# 2015Chapter 14CustomerMaintenance 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: 2.3. operties. This operties John Mendez, jmendez@msystem.com (Mendez Systems)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

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

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions