d. Create a python class called BankAccount that has a class member variable called interest_rate with default value set to 0.05, and 3 member variables name, number, and balance. code example
Example 1: python class
class Dog(object):
def __init__(self, name, age):
self.name = name
self.age = age
def speak(self):
print("Hi I'm ", self.name, 'and I am', self.age, 'Years Old')
JUB0T = Dog('JUB0T', 55)
Friend = Dog('Doge', 10)
JUB0T.speak()
Friend.speak()
Example 2: class python
class A:
.....
class B:
.....
class C(A, B):
obj = C()