I\'m having the following classes:
class Base { public virtual void Print() { Console.WriteLine(\"Base\"); } } class Der1 : Base { p
As everyone has said the class Der1 is replacing Print() instead of overriding it. To see this in action you could base d1 and d2 to Base and then call the print method. It will then return Base.
Der1
Print()
d1
d2
Base
((Base)d2).Print(); //Base