Computer Science - Object-Oriented Programming - Constructors and destructors - Constructors in Depth
4 sections. Section 1 '__init__ - The Constructor': Called automatically when object is created. Sets up initial state. MUST have self as first parameter. Can have any other parameters. Example: def __init__(self, name, age=0): self.name = name; self.age = age; self.created_at = datetime.now(). Sect