Question
Create a class for a car auction house. The member variables are: ID (string), Sold (integer) and Bluebook (Integer). Create mutators and accessors (setters and
Create a class for a car auction house. The member variables are: ID (string), Sold (integer) and Bluebook (Integer).
Create mutators and accessors (setters and getters) for all three member varibles (getID, setID, getSold, setSold, getBluebook, setBluebook), a default constructor ID="House", Sold = 0, Bluebook=0; along with an additional function getProfit which returns Sold minus Bluebook for that particular car.
Once you have the class created, as part of your program create three class objects which demonstrates your class- one of which should use the default constructor.
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