Created
December 7, 2018 12:36
-
-
Save Fhernd/649ee50c3f683a1ee83e399766b8fdec to your computer and use it in GitHub Desktop.
Métodos internos y públicos. 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 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