Introduçao a Classe 14/18


#1

Oque esta errado no meu codigo link:https://www.codecademy.com/pt-BR/courses/python-intermediate-pt-BR-7guax/2/4?curriculum_id=53594ed4fed2a85327000001#



class Employee(object):
    """Modela funcionarios da vida real!"""
    def __init__(self, employee_name):
        self.employee_name = employee_name

    def calculate_wage(self, hours):
        self.hours = hours
        return hours * 20.00

# Adicione seu codigo abaixo!
class PartTimeEmployee(Employee):
    def calculate_wage(self,hours):
        self.hours = hours
        return hours * 12.00
    def full_time_wage(self,hours):
        return super(PartTimeEmployee,self).calculate_wage(hours)
milton = PartTimeEmployee("milton")
print milton.Full_time_wage(10)

#2

Seu codigo gerou uma excecao. Consulte a janela do console para ver a mensagem de erro!

Traceback (most recent call last):
  File "python", line 29, in <module>
AttributeError: 'PartTimeEmployee' object has no attribute 'Full_time_wage'

#3

isso deu esse erro nao sei resolver ele


#4
print milton.full_time_wage(10)
             ^
             ^
             ^

#5

Meu deus eu nao tinha visto isso cara kkkk


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.