You need to declare an instance of the class containing the function
namespace.classname YourClass = new namespace.classname();
then you can use the function as follows
YourClass.functionname();
If you want to use a function without declaring an instance of the class, it must be a static function.
source
share