# Banking Account Inheritance


class Account:
    def __init__(self, title=None, balance=None):
        self.title = title
        self.balance = balance

    def getBalance(self):
        return self.balance

    def deposite(self, amount):
        self.balance += amount

    def withdrawl(self, amount):
        self.balance -= amount


class SavingsAccount(Account):
    def __init__(self, title=None, balance=None, intrestRate=None):
        self.intrestRate = intrestRate
        super().__init__(title, balance)

    def intrestAmount(self):
        return self.intrestRate * self.balance / 100


demo1 = SavingsAccount("Mark", 2000, 5)
demo1.deposite(500)
print(demo1.getBalance())
demo1.withdrawl(500)
print(demo1.getBalance())
print(demo1.intrestAmount())