see the code below
public class ClassA
{
public void MethodA()
{
Console.WriteLine("Class A Method Called");
}
}
public class ClassB : ClassA
{
public void MethodB()
{
Console.WriteLine("Class B Method Called");
}
}
Now if i've created object of ClassB as
ClassB objClassB = new ClassB();
and i want to access the method of classA through this objClassB object
(want to access MethodA() with objClassB )
How i can do it without creating instance of ClassA