How can stop the class to be inherited?
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Atul KumarRank #1,527 · 1K reputationPosted Jul 27, 2012, 2:50 AM EDT
Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Jul 27, 2012, 2:49 AM EDT
public sealed class Car
{
}
Hemant KumarRank #1,202 · 1.5K reputationPosted Jul 27, 2012, 3:00 AM EDT
you need to give the sealed keyword before the class .see this example
public sealed class Test
{
//Write your logic
}
csharp learner4 reputationPosted Jul 27, 2012, 8:49 AM EDT