How to invoke RefreshMethod of base(Aclass) where Aclass is not instantiable.
public class Aclass
{
private Aclass();
internal void RefreshMethod();
}
public class Bclass:Aclass
{
//I want to invoke RefreshMethod... How to do it ? Thanks,if you have any idea?
}
Since
RefreshMethod
is not a static mehtod, you have to instantiate an object of typeAClass
and then invoke it as usual.However, I don't think that actually this is your problem. I think that
public Bclass:Bclass
is a typo error. You might wanted to write the following:Then since
BClass
inheritsAClass
you can invokeRefreshMethod
in yourBClass
.