There is a code where variable is defined as follows:
class MoveSquareClass(object):
# create messages that are used to publish feedback/result
_feedback = TestFeedback()
_result = TestResult()
def __init__(self):
# code continues
My question what will happen when we create an instance of the class, will the variables be declared? I understand that defining the variables inside the constructor would simplify things but this was how the code was. Also should we call them using .init prefix? If yes, why?