Personal Finance 1.0.0
An application that allows you to track/store/view finances, as well as calculate different financial values.
Income.h
Go to the documentation of this file.
1/*
2 * Author: Dawson Dauphinais
3 * ddauphin@nmu.edu
4 *
5 * Date Last Modified: 11/23/2021
6 *
7 * This file contains the definitions of the functions belonging to the Income class.
8 * */
9
10#ifndef PERSONALFINANCE_INCOME_H
11#define PERSONALFINANCE_INCOME_H
12
13#include "Money.h"
14
19class Income : public Money
20{
21private:
22 string date;
23 Money amount;
24
25public:
31 Income(string d, Money m);
32
37 explicit Income(Money m);
38
43 string getDate();
44
50
55 void setDate(string d);
56
62
67 void toString();
68};
69
70#endif //PERSONALFINANCE_INCOME_H
This class is used to store income objects.
Definition: Income.h:20
string getDate()
Returns the date of the income.
void setAmount(Money m)
Sets the amount of the income.
void setDate(string d)
Sets the date of the income.
Income(string d, Money m)
Constructor based on a date and monetary amount.
Money getAmount()
Returns the amount of the income.
Income(Money m)
Constructor based on a monetary amount.
void toString()
Converts the income object into a string.
The Money class is used to allow operations on Money.
Definition: Money.h:27