Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created December 7, 2018 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/649ee50c3f683a1ee83e399766b8fdec to your computer and use it in GitHub Desktop.
Save Fhernd/649ee50c3f683a1ee83e399766b8fdec to your computer and use it in GitHub Desktop.
Métodos internos y públicos. Python.
class Clase:
def __init__(self):
self._interno = 0 # Miembro interno
self.publico = 1 # Miembro público
def _metodo_interno(self):
'''
Método interno
'''
pass
def metodo_publico(self):
'''
Método público
'''
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment