2
Answer (Choose 1 answer)
A. NETDot
B. An exception will be thrown
C. NETNET
D. DotNET
}
public virtual void Print(){Console.Write("Dot");
}
class A
class B: A{
public override void Print(){
Console.Write("NET");
}
}
class Program{
static void Main(string[] args){
B obj = new B();
obj.Print();
A obj1 = new B();
obj1.Print();
Console.WriteLine();
}
}
The output will be:
w
Finish