Question: Programming Exercise 1 0 - 1 : LetterDemo Instruction: Create an application named LetterDemo that instantiates objects of two classes named Letter and CertifiedLetter and

Programming Exercise 10-1: LetterDemo
Instruction:
Create an applicationnamedLetterDemothat instantiates objects of two classes namedLetterandCertifiedLetterand that demonstrates all their methods.
The classes are used by a company to keep track of letters they mail to clients.
TheLetterclassincludes auto-implemented properties for theNameof the recipient and theDatemailed (stored as strings).
Hints:
You may want to read the entire section 10-1Introduction to Inheritance in your textbook as a reference
You may want to read the section 10-2Extending Classesin your textbook as a reference for how to create a derived class as well as theYou Do ItCreating the Loan Classactivity .
You may want to read the section 10-6a and b Using the Get Type() Methodand Using the ToString() Method in your textbook as a reference.
Refer to Figure 10-23 for an example of an Employee class ToString() method.
Review the Panopto video "Programming Exercise 10-1 LetterDemo" by clicking on the following link: Programming Exercise 10-1 LetterDemo
You may also want to review the Panopto video "Inheritance Example" by clicking on the following link: Chapter 10 Inheritance Example
You may also want to review the Panopto video "ToString Method Example"by clicking on the following link:Chapter 10 ToString Method Example
_____________________________________________________________________________________________________
-- Your CertifiedLetter class is inherited from your base class Letter You may also use an auto-implemented property for Tracking Id.
-- Your class Letter willalso include a ToString() method that returns a string constructed from the return value of the objects GetType() method
and the values of the fields.Used for your WriteLine to display your object characteristics (example shown below)
Example Output:
Letter To: Electric Company Date mailed : 02/14/18
CertifiedLetter To: Howe and Morris, LLC Date mailed : 04/01/2019 Tracking number: i2YD45
Programming Exercise 1 0 - 1 : LetterDemo

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 Programming Questions!