Just want to know when we define a method of the class, why we cannot use the argument directly.
"""Models real-life employees!"""
def init(self, employee_name):
self.employee_name = employee_name
def calculate_wage(self, hours): self.hours = hours return hours * 20.00
In this case, why we need to define self.hours = hours. What if we do not have this statement?
Thank you very much for the reply in advance.