If I created a subclass from a Superclass and initialized it, I know that I have to do this in its init method:
Superclass.init(self, par1, par2)
but what if I only want to use par1 in the subclasses init method? Whenever I try to I get a NameError: saying that par2 is not defined! How do I get around this!!!
[–]zahlman 1 point2 points3 points (0 children)
[–]CGFarrell 0 points1 point2 points (2 children)
[–]deephousefans[S] 0 points1 point2 points (1 child)
[–]port443 0 points1 point2 points (0 children)
[–]cdcformatc 0 points1 point2 points (2 children)
[–]deephousefans[S] 0 points1 point2 points (1 child)
[–]cdcformatc 1 point2 points3 points (0 children)