Created
May 28, 2013 22:25
-
-
Save ricardosiri68/5666633 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Hola: | |
def __init__(self): | |
print "hola soy el objeto Hola" | |
def miMetodo(self): | |
print "Mi metodo de tipo Hola" | |
class Chau: | |
def miMetodo(self): | |
print "Mi metodo de tipo Chau" | |
print "justo aca abajo va a salir impreso: hola soy el objeto Hola" | |
hola = Hola() | |
hola.miMetodo() | |
print "viste?, y ahora abajo no aparece nada" | |
chau = Chau() | |
print "pero para !!!, aun podemos llamar al metodo miMetodo del objeto Chau" | |
chau.miMetodo() | |
print """y todo esto lo se porque en verdad SI LEI el manual: | |
"Python para todos" del sitio mundogeek.com... no como otros MENTIROSOS""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment