How can i call a function of Class A from Class B without creating any objects,static menthds or using any inheritance..
like if class A has a variable of classB then classB can call a method of class A....
method A ()
//how to define Var of Class B
// how to call method of class A here
Thanks but i have mentioned earlier that i dont have to use objects or static methods.
i want to implement a logic which doesnot require using classname.methodname rather can be called directly without classname.