how to prevent a class from being inherited in c#.net?
Answer / Abhineet Kumar Saxena
"To prevent a class from being inherited in C#, you can use the sealed keyword. Here's an example:nn```csharpnpublic sealed class SealedClass{n}n```
| Is This Answer Correct ? | 0 Yes | 0 No |
what are pointer types in c#
Can you create an instance of a static class?
What is ienumerable and iqueryable?
What do you mean by saying a "class is a reference type"?
Can abstract class have constructor?
List some Advantages of switch-case over if else?
Can you instantiate an abstract class c#?
What are winforms in c#?
What are the differences between a class and a struct?
What are the 3 logical operators?
What is a c# delegate?
What is the benefit of using interface in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)