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 : 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 autoimplemented properties for theNameof the recipient and theDatemailed stored as strings
Hints:
You may want to read the entire section Introduction to Inheritance in your textbook as a reference
You may want to read the section Extending 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 a and b Using the Get Type Methodand Using the ToString Method in your textbook as a reference.
Refer to Figure for an example of an Employee class ToString method.
Review the Panopto video "Programming Exercise LetterDemo" by clicking on the following link: Programming Exercise LetterDemo
You may also want to review the Panopto video "Inheritance Example" by clicking on the following link: Chapter Inheritance Example
You may also want to review the Panopto video "ToString Method Example"by clicking on the following link:Chapter ToString Method Example
Your CertifiedLetter class is inherited from your base class Letter You may also use an autoimplemented 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 :
CertifiedLetter To: Howe and Morris, LLC Date mailed : Tracking number: iYD
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
