Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

LAB #3-Practice Classes Each lab will begin with a brief demonstration by the TAs. They will cover the core concepts examined in the material. As such, this document will not serve to tell you...

1 answer below »
LAB #3-Practice Classes Each lab will begin with a brief demonstration by the TAs. They will cover the core concepts examined in the material. As such, this document will not serve to tell you everything the TAs will in the demo. It is highly encouraged that you ask questions and take notes. (3 pts) Create .h and .cpp files with constructors, accessors, and mutators for one class in Assignment 2. In Assignment 2, you need to create Restaurant, Menu and Pizza classes and employee and hour structs. Create the .h and .cpp files for one of the classes with the appropriate members (all being private), mutator functions, accessor functions, and constructors. For example, here are some prototypes for the default constructor, mutators, accessors for the Pizza class to get you started. Pizza void set_name (string name) string get_name ) void set_num_ingredients (int num) int get_num ingredients ); void set from file () (2 pts) Set up the functions which will read information from the files for one class in Assignment 2. It is not recommended that you do file /O in your constructors as doing so may result in your object failing to be made. (1 pt) Make sure you are using const in the appropriate places for all classes.
Answered 126 days After Nov 26, 2021

Solution

Tanisha answered on Apr 01 2022
113 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here