Hi Frnds,
A non-static class which have static and not static methods (returns string). Need to access the static method but I should not instantiate that class to access the non-static methods.
Condition
Class should not be static or Abstract
Class should have at least one static and non-static methods
Class should not be inherited
Thanks In Advance.
Afzaal Ahmad ZeeshanPosted May 6, 2015, 8:23 AM
You cannot call instance functions in your class unless you create a new instance of the class. Static functions also require that your non-static functions are called through an instance.