I have the following script in a python file classfile.py
class Myclass:
    def testadd(x,y):
           return x+y
In another python file callfile.py
from classfile import Myclass
print testadd(3, 5)
while running the script callfile.py, I am getting 
NameError: name 'testadd' is not defined
What's wrong with my code?
 
     
     
     
    