Question: C++ + +%20Early%20Object,96209th%20Edition,962 Write a class declaration for a class named Pizza that has the data members price, a double, and size, a Circle object
+ +%20Early%20Object,96209th%20Edition,962 Write a class declaration for a class named Pizza that has the data members price, a double, and size, a Circle object (declared in question 7.21). It also has member functions: setPrice, setsize, and costPerSqIn. Write the code for these as inline functions. Write four lines of code that might appear in a client program using the Pizza class to do the following: Define an instance of the Pizza class named myPizza. Call a Pizza function to set the price. Call a Pizza function to set the size (i.e., the radius). Call a Pizza function to return the price per square inch and then print it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
