public class MyClass:MyClassBaseClass, IInterface
{
public static method A()
{
}
public static method B()
{
}
}
Consider the snippet above.
I want to implement an interface in my class. I want to make all the implemented methods from interface IInterface
as static in my class so that I do not have to create an instance before calling the method. Why I am not allowed to do it and what are the possible solutions and workaround to do the same thing which I wish to do.