Complete the thick.h, thick.cpp, thin.h, and thin.cpp classes in the attached pizza solution. Modify your main.cpp class so that it creates a thin and thick crust pizza if selected by the user. Your solution should allow the user to order a regular, stuffed, thin or thick crust pizza. All child classes (stuffed, thin, thick) should inherit attributes and functions from the Pizza class. The stuffed class has already been implemented. The thick and thin class set_cost() funtions should differ in the following ways: thick crust has an additional charge of $2 thin crust has a cost discount of $1

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 20RQ
icon
Related questions
Question

Complete the thick.h, thick.cpp, thin.h, and thin.cpp classes in the attached pizza solution. Modify your main.cpp class so that it creates a thin and thick crust pizza if selected by the user. Your solution should allow the user to order a regular, stuffed, thin or thick crust pizza. All child classes (stuffed, thin, thick) should inherit attributes and functions from the Pizza class. The stuffed class has already been implemented. The thick and thin class set_cost() funtions should differ in the following ways: thick crust has an additional charge of $2 thin crust has a cost discount of $1

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Reference Types in Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,