Skip to content

Instantly share code, notes, and snippets.

@natemurthy
Last active August 29, 2015 14:01
Show Gist options
  • Save natemurthy/8853059120175b81d20e to your computer and use it in GitHub Desktop.
Save natemurthy/8853059120175b81d20e to your computer and use it in GitHub Desktop.
class Point(object):
def __init__(self, _x, _y):
self._x = _x; self._y = _y
@property
def x(self):
return self._x
@x.setter
def x(self, value):
self._x = value
@property
def y(self):
return self._y
@y.setter
def y(self, value):
self._y = value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment