diff --git a/bankaccount.h b/bankaccount.h index 92c5452..e69de29 100644 --- a/bankaccount.h +++ b/bankaccount.h @@ -1,43 +0,0 @@ -#include - -/** Represent an individuals bank account **/ -class BankAccount -{ -private: - float balance; - -public: - static int number; // see the end of this file for the initialisation of number - std::string name; - - /** Takes account name as input **/ - BankAccount( std::string name ) - { - this->name = name; - balance = 0.f; - number = number +1; - } - - float get_balance() - { - return balance; - } - - void deposit( float amount ) - { - balance += amount; - } - - void withdraw( float amount ) - { - if( amount <= balance ) - balance -= amount; - } - - /*def transfer(self, other, amount): - if amount <= self.__balance: - self.__balance -= amount - other.__balance += amount*/ -}; - -int BankAccount::number = 0;