//sealed Class Simple Example
class A {}
sealed class B : A {}
--Sealed methods
class X
{
protected virtual void First() { }
protected virtual void Second() { }
}
class Y : X
{
sealed protected override void First() {}
protected override void Second() { }
}
class A {}
sealed class B : A {}
--Sealed methods
class X
{
protected virtual void First() { }
protected virtual void Second() { }
}
class Y : X
{
sealed protected override void First() {}
protected override void Second() { }
}
No comments:
Post a Comment