Question: HELP WITH THIS PYTHON PROGRAM PLEASE! Write a class named CreditCard, which should have the following data attributes: . balance (balance of money owe to
Write a class named CreditCard, which should have the following data attributes: . balance (balance of money owe to the bank) name (name of the account owner) .credit line (maximum amount of money owe to the bank) The CreditCard class should have an .init. method that initializes these data attributes. The CreditCard class should also have purchase and pay off methods (both have parameter amount) to add and deduct a certain amount of money amount from the .. balance attribute. In the purchase method, the check for whether the .balance has exceeded the .credit line should be performed; If it does, a warning message should be issued instead. Additionally, the CreditCard class should also have two getter methods get bolance and get name for retrieving the balance and owner name
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
