Skip to content

Instantly share code, notes, and snippets.

@drc288
Last active October 8, 2019 13:02
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 drc288/e60bc4178d3e00016f2cb550dc55752f to your computer and use it in GitHub Desktop.
Save drc288/e60bc4178d3e00016f2cb550dc55752f to your computer and use it in GitHub Desktop.
Example0 - public class attribute
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