Example of a Python class with constructor and method implementation.
Python code snippet defining a Person class with __init__ and sayHello methods, creating an instance p1 and calling sayHello().
Quality Assured by Worksheets Library Team
Reviewed for educational accuracy and age-appropriateness
ID: #689476