Created
May 6, 2014 01:13
-
-
Save psicobyte/00c9bdc7a3d1d5cb92e8 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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
class cuenta_bancaria(): | |
def __init__(self): | |
self.titular = "Fulano" | |
self.num_cuenta = "123456789" | |
self.saldo = 0 | |
def getTitular(self): | |
return self.titular | |
def getSaldo(self): | |
return self.saldo | |
miCuenta = cuenta_bancaria() | |
print "El saldo de la cuenta es",miCuenta.getSaldo() | |
print "El titular de la cuenta es",miCuenta.getTitular() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment