T
Tony
Hello!
The keword abstract and sealed are not allowed in interfaces.
I can understand that abstract is not allowed because an interface is
completely abstract
and contains no implementation.
As mentioned before sealed is not allowed in an interface because it makes
not sense is the reason that is mentioned but if we have
this construction it would make sense. Here we are not allowed to inherit
the interface IMyBaseInterface
public sealed interface IMyInterface : IMyBaseInterface
{
....
}
//Tony
The keword abstract and sealed are not allowed in interfaces.
I can understand that abstract is not allowed because an interface is
completely abstract
and contains no implementation.
As mentioned before sealed is not allowed in an interface because it makes
not sense is the reason that is mentioned but if we have
this construction it would make sense. Here we are not allowed to inherit
the interface IMyBaseInterface
public sealed interface IMyInterface : IMyBaseInterface
{
....
}
//Tony