27 lines
515 B
C
Raw Normal View History

2021-03-27 15:33:25 -04:00
#ifndef CARH
#define CARH
class Car {
private:
int modelYear;
// TODO: Declare purchasePrice member (int)
int currentValue;
public:
void SetModelYear(int userYear);
int GetModelYear() const;
// TODO: Declare SetPurchasePrice() function
// TODO: Declare GetPurchasePrice() function
void CalcCurrentValue(int currentYear);
// TODO: Define PrintInfo() method to output modelYear, purchasePrice, and
// currentValue
};
#endif