[Tutor] More Class Help.

S A buc40@bemail.org
Mon, 19 Aug 2002 22:03:52 -0700


Hi Everyone-

Let's say I have the following made up class:

class MadeUp:
    def __init__(self, x, y, z):
        self.x = x
        self.y = y
        self.z = z

    def xData(self, x):
        ... do some stuf here...
    def yData(self, y):
        ... do some stuf here...
    def zData(self, z):
        ... do some stuf here...

Would this allow a person to pass along the variables (x,y,z) to the the "MadeUp" instance?
Would this also allow someone to pass the variables along to each of the class methods?

Thanks.
SA



"I can do everything on my Mac that I used to do on my PC, plus alot more ..."

-Me

------------------------------------------------------------
Free, BeOS-friendly email accounts: http://BeMail.org/
BeOS News and Community: http://www.BeGroovy.com/


---------------------------------------------------------------------
Express yourself with a super cool email address from BigMailBox.com.
Hundreds of choices. It's free!
http://www.bigmailbox.com
---------------------------------------------------------------------