Python ogólne dziedziczenie klasy

# python generic class inheritance

class ParentClass():
    def ParentFunction(self):
        print("Parent function")

class ChildClass(ParentClass):
    def ChildFunction(self):
        print("Child function")

var = ChildClass()

var.ChildFunction() # Child function
var.ParentFunction() # This function is inherited from ParentClass
Bittu5134