Create your first class
Time to write your first class!
In this exercise, you'll start building the Employee
class, beginning by defining it as an empty class, and then adding a method allowing you to set an object's .name
attribute.
This exercise is part of the course
Introduction to Object-Oriented Programming in Python
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Create an empty class Employee
____
# Create an object emp of class Employee
____