I am quite new to python and I have to implement the bank account code. At this point I just want to
Ask is whether I am moving in correct direction or not. I am not looking for any code but needs suggestion.
So far for bank account code I have gathered following requirements.
1) Class to implement bank account
2) function to check balance
3) To withdraw money
4) type of account
5) to enter correct username and password
6) type of account like current or saving account
Below I am giving a blueprint of my code. Kindly ignore the syntax at this moment please.
All help and criticism will be highly helpful to me.
Thanks and regards,
class BankAccount: 'some comments' authorisedCode = 0; def_init_(self, name, password, balance): self.name = name self.password = password self.balance = balance def authorisation(self, name, password): if( self .name == name && self.password == password) print "access granted" authorisedCode = 1; else print " wrong code"; def CurrentBalance(self) // some implementation here def Withdrawal(self): // implementation of withdrawal def extraService: // implementation to check whether credit card is there or not