Last active
August 29, 2015 14:01
-
-
Save natemurthy/8853059120175b81d20e to your computer and use it in GitHub Desktop.
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 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