Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a c++ main () function out of the code below that creates an instance object of Auto called Car, which has the following initial
Write a c++ main () function out of the code below that creates an instance object of Auto called Car, which has the following initial data: there is a quantity of five(5) on inventory, and two(2) on reorder; the price per unit is $15,545.91, and the description is that of a four-wheel drive truck, obtained from the GM. Initializethe object Car, and print out all its vital facts.
3 of 5 Automatic Zoom ; // first derived class using namespace std; class Auto , public Inventory private string manufacturer; public Auto (int q, int r, double p, string d, string man); Auto O void printo; string getManufacturer Auto: :Auto (int anyQuan, int anyReorder, double anyPrice, string anyDescrip, string nayManufactureer) : Inventory (anyQuan, anyReorder, anyPrice, anyDescrip) // calls base constructor manufacturer-nayManufactureer Auto void Auto::print) ( cout
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started