A class can not be inherited by any other classes is known as a sealed class. Which should be declare using a sealed Modifier.
Example :
sealed class class1
{
--Define members---------
}
class class2 : class ----------> invalid.
Example :
sealed class class1
{
--Define members---------
}
class class2 : class ----------> invalid.
No comments:
Post a Comment