Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psicobyte/00c9bdc7a3d1d5cb92e8 to your computer and use it in GitHub Desktop.
Save psicobyte/00c9bdc7a3d1d5cb92e8 to your computer and use it in GitHub Desktop.
#!/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