[ create a new paste ] login | about

Link: http://codepad.org/LrPzpquE    [ raw code | output | fork ]

Python, pasted on Apr 16:
1
2
3
4
5
6
7
8
9
10
11
class dummy:
    def func1(self,name):
        print 'hello %s' % name
    def func2(self,name):
        print 'hi %s' % name

def greet(name):
    d = dummy()
    d.func1(name)

greet('Bala')


Output:
1
hello Bala


Create a new paste based on this one


Comments: