[Tutor] classes and inheritance

CameronStoner wolf_binary@hotmail.com
Sat, 28 Sep 2002 19:23:32 -0700


This is a multi-part message in MIME format.

------=_NextPart_000_0008_01C26724.8861F580
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all,

Say I have a class Animal , Mamal, and Human.  Then go on to say that  =
Mamal inherits from Animal and that Human does from Mamal.  Can you make =
an object from Mamal that then is a generic Mamal that doesn't have the =
attributes of Human and is this a good programming practice?

Thanks,
Cameron Stoner

------=_NextPart_000_0008_01C26724.8861F580
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 http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Say I have a class&nbsp;Animal , Mamal, =
and=20
Human.&nbsp; Then go on to say that&nbsp; Mamal inherits from Animal and =
that=20
Human does from Mamal.&nbsp; Can you make an object from Mamal that then =
is a=20
generic Mamal that doesn't have the attributes of Human and is this a =
good=20
programming practice?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Cameron =
Stoner</FONT></DIV></BODY></HTML>

------=_NextPart_000_0008_01C26724.8861F580--