How to block a class from being inherited further?
Answer / Suresh Titiyal
To prevent a class from being inherited by other classes, you can declare it as `sealed`. When a class is sealed, it cannot be extended by deriving another class from it.
| Is This Answer Correct ? | 0 Yes | 0 No |
f i give input like 1,1,4,5,6,1,2,5,4,1,2, then output should be like : 1-4, 2-2, 4-2, 5-1, 6-1 which means 1 occurs 4 times, 2 occurs 2 times like so.
What is asynccallback c#?
What is windows application in c#?
What are the access-specifiers available in c#?
Explain about ODP.net
What does return do in unity?
What is the Difference between imperative and interrogative code?
What is difference between dictionary and hashtable?
What are delegates?
What is a proxy of the server object in .NET Remoting?
What is icollection in c#?
What is the difference between an application domain and a process?
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)