ConstructorApplies to: general, python, cppA constructor initializes a new object so it starts in a valid state before other code uses it. class Pose: def __init__(self, x): self.x = x See also: class, object