How do I print my new employee’s full_time_wage results?


#1

Question

How do I print my new employee’s full_time_wage results?

Answer

If you’ve created the new full_time_wage() method in your PartTimeEmployee class, then you’ll need to create your milton object. milton is a PartTimeEmployee object, so you’ll create it like this:
milton = PartTimeEmployee(“name_here”)
And then we use the methods available in the PartTimeEmployee class by attaching them to our milton object, like this:
milton.method_name(“parameters”)
Don’t forget to pass it a value surrounded by parentheses!


FAQ: Learn Python - Introduction to Bitwise Operators - This Looks Like a Job For