Question
Using C#. Create an application classnamed LetterDemo that instantiates objects of two classes named Letter and CertifiedLetter and that demonstrates all their methods.The classes are
Using C#. Create an application classnamed LetterDemo that instantiates objects of two classes named Letter and CertifiedLetter and that demonstrates all their methods.The classes are used by a company to keep track of letters they mail to clients. The Letter class includes auto-implemented properties for the Name of the recipient and the Date mailed (stored as strings).
Next, include a ToString() method that overrides the Object classs ToString() method and returns a string that contains the name of the class (using GetType()) and the Letters data field values. Create a child class named CertifiedLetter that includes an auto-implemented property TrackingNumber (of type string) that holds a tracking number for the letter.
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