> masteringswe_
codingpython

Class - constructor and fields

Define class Person with a constructor accepting a name and age argument. Define instance method greet() in the class that prints a string including the Person’s name and age.