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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Question 1: C#. Not sure how to do this one. Help of any input and output would be appreciated!
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
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY