[Tutor] calling the constructor of an inherited class
ali mangaliag
rmangaliag@slu.edu.ph
Thu May 29 03:16:02 2003
This is a multi-part message in MIME format.
------=_NextPart_000_0005_01C325F6.CFA0A4A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
class x:
def __init__(self, a):
self.a =3D a
class x(y):
def __init__(self):
# how can i call the constructor of class x???
thanks...
ali
------=_NextPart_000_0005_01C325F6.CFA0A4A0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>class x:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> def __init__(self,=20
a):</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =
self.a =3D=20
a</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>class x(y):</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> def =
__init__(self):</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> # =
how can i=20
call the constructor of class x???</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>thanks...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>ali</FONT></DIV></BODY></HTML>
------=_NextPart_000_0005_01C325F6.CFA0A4A0--