Need help on a project To :"Create a class called BankAccount with the following parameters "

Chris Angelico rosuav at gmail.com
Sat Dec 12 04:21:28 EST 2015


On Sat, Dec 12, 2015 at 8:05 PM, Harbey Leke <idowuolawale at gmail.com> wrote:
> Create a class called BankAccount
>
> .Create a constructor that takes in an integer and assigns this to a `balance` property.
>
> .Create a method called `deposit` that takes in cash deposit amount and updates the balance accordingly.
>
> .Create a method called `withdraw` that takes in cash withdrawal amount and updates the balance accordingly. if amount is greater than balance return `"invalid transaction"`
>
> .Create a subclass MinimumBalanceAccount of the BankAccount class
>
> Please i need help on this i am a beginer into python programming.

Start by creating a text file in which you will store your code. Then
create a class called BankAccount, and start adding methods to it.

Which part of this do you need help with?

If you're taking a course on Python programming, you should have met
these concepts. Go and read the course text and see if you can find
the information you need.

ChrisA



More information about the Python-list mailing list