Create an application class named Letter Demo that instantiates objects of two classes named Letter and Certified Letter 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. Also, include a ToString() method that overrides the Object class's ToString() method and returns a string that contains the name of the class (using Get Type ()) and the Letter's data field values. Create a child class named Certified Letter that includes an auto-implemented property that holds a tracking number for the letter.
Create an application class named Letter Demo that instantiates objects of two classes named Letter and Certified Letter 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. Also, include a ToString() method that overrides the Object class's ToString() method and returns a string that contains the name of the class (using Get Type ()) and the Letter's data field values. Create a child class named Certified Letter that includes an auto-implemented property that holds a tracking number for the letter.
Related questions
Question
Question 1: C#. Not sure how to do this one. Help of any input and output would be appreciated!

Transcribed Image Text:CHAPTER 10
19. Within an interface,
20.
1.
2.
Introduction to Inheritance
Exercises
diz
no methods can be abstract
a.
b. some methods might be abstract
c. some, but not all, methods must be abstract
d. all methods must be abstract
90-924
Abstract classes and interfaces are similar in that
a. you can instantiate concrete objects from both
b. you cannot instantiate concrete objects from either one
c. all methods in both must be abstract
d. neither can contain nonabstract methods
Programming Exercises
Create an application class named LetterDemo that instantiates objects of two classes
named Letter and Certified Letter 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. Also, include a ToString() method that overrides the Object
class's ToString() method and returns a string that contains the name of the class
(using Get Type ()) and the Letter's data field values. Create a child class named
Certified Letter that includes an auto-implemented property that holds a tracking
number for the letter.
3.
Create an application class named Photo Demo that demonstrates the methods of
three related classes for a company that develops photographs. Create a class named
Photo that includes fields for width and height in inches and properties for each field.
Include a protected price field, and set it to $3.99 for an 8-inch by 10-inch photo,
$5.99 for a 10-inch by 12-inch photo, and $9.99 for any other size (because custom
cutting is required). The price field requires a get accessor but no set accessor. Also
include a ToString() method that returns a string constructed from the return value
of the object's Get Type () method and the values of the fields. Derive two subclasses-
Matted Photo and Framed Photo. The Matted Photo class includes a string field to
aludes two string fields that hold the frame's
a. C
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images
