How can stop the class to be inherited?
how can stop the class to be inherited??
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Atul KumarPosted Jul 27, 2012, 6:50 AM
csharp learnerPosted Jul 27, 2012, 12:49 PM
Hemant KumarPosted Jul 27, 2012, 7:00 AM
you need to give the sealed keyword before the class .see this example
public sealed class Test
{
//Write your logic
}
Santhosh Kumar JayaramanPosted Jul 27, 2012, 6:49 AM
public sealed class Car
{
}