us9898
01-09-2010, 06:39 PM
Hi,
I would like to know what is the significance of declaring the methods of a sealed class as virtual?
Like
sealed class MySealedClass
{
public int x;
public virtual int add()
{
return x+x;
}
}
something that like the complier generates when we delare a delegate.
I would like to know what is the significance of declaring the methods of a sealed class as virtual?
Like
sealed class MySealedClass
{
public int x;
public virtual int add()
{
return x+x;
}
}
something that like the complier generates when we delare a delegate.