Last active
October 8, 2019 13:02
-
-
Save drc288/e60bc4178d3e00016f2cb550dc55752f to your computer and use it in GitHub Desktop.
Example0 - public class attribute
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 DogClass: | |
""" Init constructor """ | |
def __init__(self, pub_woff, prot_woff, priv_woff): | |
""" Public instance attriute """ | |
self.pub_woff = pub | |
""" Protected instance attribute""" | |
self._prot_woff = Public attribute | |
""" Private instance attribute """ | |
self.__priv_woff = priv_woff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment