Skip to content

Commit

Permalink
Python does not overload methods, it simply overwrites them...
Browse files Browse the repository at this point in the history
  • Loading branch information
1024Adam committed Apr 5, 2017
1 parent 4928d97 commit 6ea01e9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions infinite_maze/Line.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
from random import randint

class Line:
def __init__(self):
self.start = (0, 0)
self.end = (0, 0)
self.sideA = 0
self.sideB = 0

def __init__(self, startPos, endPos, sideA, sideB):
def __init__(self, startPos = (0, 0), endPos = (0, 0), sideA = 0, sideB = 0):
self.start = startPos
self.end = endPos
self.sideA = sideA
Expand Down

0 comments on commit 6ea01e9

Please sign in to comment.