I am not able to call the variables and constructor of parent class using inheritance.
class base():
#age =24;
def __init__(self,age):
self.age = age;
print("i am in base")
class Date(base):
def __init__(self,year,month,date):
self.year = year
self.month = month
self.date = date
class time(Date):
def greet(self):
print('i am in time')
a = time(1,2,4)
print(a.year)
print(a.age) #this line is throwing error...
Please help, how to call the constructor of the parent class