On Fri, Jul 23, 2010 at 6:19 PM, M K Saravanan <mksa...@gmail.com> wrote:
> class MksMath(object):
>        def __init__(self):
>                pass
>        def add(a,b):
>                return a+b
>        def sub(a,b):
>                return a-b
>        def mul(a,b):
>                return a*b
>        def div(a,b):
>                return a/b

sorry for the mistake in the example class I used.  Its functions
should have been (missed the first parameter self):

        def add(self,a,b):
                return a+b
        def sub(self,a,b):
                return a-b
        def mul(self,a,b):
                return a*b
        def div(self,a,b):
                return a/b

-- mks --
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to