NEED HELP WITH PYTHON CODE AND PLEASE KEEP OUTPUT SAME.
Implement the following:1) Create a class BankAccount with the attribute balance.2) Create a BankAccount print method that prints the balance.3) Create a class CheckingAccount which inherits from BankAccount.4) CheckingAccount has an attribute numChecks.5) In CheckingAccount override the BankAccount print method to also print numChecks.6) Instantiate two objects, one of type BankAccount and one of type CheckingAccount.7) Call the print functions for each object.
Example OutputBalance: 100000Balance: 200000 NumChecks: 10
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here