[Tutor] OOP

Cameron Stoner wolf_binary@hotmail.com
Wed, 20 Mar 2002 20:08:13 -0600


This is a multi-part message in MIME format.

------=_NextPart_000_0013_01C1D04A.F6EBF260
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I wanted to know if my thinking is straight about OOP, cause I'm writing =
notes one how to do stuff in Python as I learn them. =20

Here it is:
- when making an instance(object) of a class it has all the =
behavior(functions or methods) of that class.
- objects take on all the characteristics of that class
- to use the characteristics you just name the behavior
- Example: Say you had a cat(class) named Max(instance); who likes to =
play.
    The class cat has Max as an object that can play.
- you have to initiate play from Max
- Max only plays when you tell it to

Feel free to add to this or set me straight because I want to be sure on =
this.

Thanks,
Cameron Stoner

------=_NextPart_000_0013_01C1D04A.F6EBF260
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.2713.1100" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I wanted to know if my thinking is =
straight about=20
OOP, cause I'm writing notes one how to do stuff in Python as I learn=20
them.&nbsp; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Here it is:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>- when making an instance(object) of a =
class it has=20
all the behavior(functions or methods) of that class.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>- objects take on all the =
characteristics of that=20
class</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>- to use the characteristics you just =
name the=20
behavior</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>- Example: Say you had a cat(class) =
named=20
Max(instance); who likes to play.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; The class cat has =
Max as an=20
object that can play.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>- you have to initiate play from =
Max</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>- Max only plays when you tell it =
to</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Feel free to add to this or set me =
straight because=20
I&nbsp;want to be sure on this.</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_0013_01C1D04A.F6EBF260--