class ExClass:
"""A simple example class"""
i = 100
def func(self):
return 'Hello Quant'
I want to know how to invoke the function 'func' in the function ExClass to print 'Hello Quant'. Thanks for your help!
Hello,
You can invoke this function by first creating an object of the class ExClass like this:
a = ExClass()
And then call the member function like this:
a.func()