class heredity change a function in init of the other python str code example Example: python inherit parent class init SuperClass.__init__(self, variable)