View in Telegram
class A:
    def new(cls, *args, **kwargs):
        print("Creating instance of A")
        return super().new(cls)

    def init(self):
        print("Initializing A")

class B(A):
    def new(cls, *args, **kwargs):
        print("Creating instance of B")
        return super().new(cls)

    def init(self):
        print("Initializing B")

obj = B()
#Python #Senior
Love Center - Dating, Friends & Matches, NY, LA, Dubai, Global
Love Center - Dating, Friends & Matches, NY, LA, Dubai, Global
Find friends or serious relationships easily