1234567891011121314151617181920212223242526272829 |
- #ifndef __LOAN__
- #define __LOAN__
- using namespace std;
- class loan{
- public:
- loan(string description, float money, int months, float installment):
- _description(description), _money(money), _months(months),
- _installment(installment){}
- void set_description(string description){ _description = description; }
- void set_money(float money){ _money = money; }
- void set_months(int months){ _months = months; }
- void set_installment(float installment){ _installment = installment; }
-
- string get_description(){ return _description; }
- float get_money(){ return _money; }
- int get_months(){ return _months; }
- float get_installment(){ return _installment; }
- private:
- string _description;
- float _money;
- int _months;
- float _installment;
-
- };
- #endif
|