//
class Account {
nublte:
Fall 2019-CSCI 272/2- Test 2-November 5, 2019
Name
Given the prototypes, define class member functions as they would
be in the class cpp file:
a) Add a custom constructor to the Car class. The constructor
will take in a value for the data member mileage. Validate that
the value coming in is at least 5 but less than 10 - if it is,
set the value of mileage to that number. Otherwise, do not update
mileage.
Prototype:
Car(int);
b) Override the == operator for the Car class. Define the
overload so that if the Car object on the left hand side of the
== operator has the same mileage value as the Car object on the
right hand side, a value of true will be returned, otherwise a
value of false will be returned.
Prototype: bool operator == (const Car&);