I have a Time class and a Date class as parent classes , and both of them has the get() method which is Time class gets h/m/s and Date class gets y/m/d . I have Invoice class as child class that inherit from Date and Time class and I want that every object of Invoice class get h/m/s and y/m/d attributes in the moment of creation. all the same as show() method or set() method etc.
I tried :
class Time:
    def get(self):
        #geting the h/m/s
class Date:
    def get(self):
        #geting the y/m/s
class Invoice(Time, Date):
    def __init__(self):
        self.get()
but it only gets from the Time class
