27 lines
515 B
C
27 lines
515 B
C
#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
|