Use `self.func`, not `self.__class__`.