c# do you new the new keyword for polymorphism code example
Example: polymorphism in c#
public class X
{
public virtual void A()
{
}
}
public class Y : X
{
public override void A()
{
}
}
public class X
{
public virtual void A()
{
}
}
public class Y : X
{
public override void A()
{
}
}