class A
{
public void abc(int q)
{
Console.WriteLine("abc from A");
}
}
class B : A
{
public void abc(double p)
{
Console.WriteLine("abc from B");
}
}
static void Main(string[] args)
{
int i = 5;
B b = new B();
b.abc(i);
Console.ReadLine();
}
Answer :-
abc from B.
0 Comments:
Post a Comment