Created
February 4, 2018 00:06
-
-
Save Fhernd/1ef4de13466d8113086057e45989177c to your computer and use it in GitHub Desktop.
Definición de una clase en Python.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Empleado: | |
empresa = 'ABC Inc.' | |
salario_base = 5000000 | |
def calcular_salario(self): | |
print(salario_base * 1.37) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment