Can destructors have access modifiers?
Answer / Vinit Kumar Rao
Yes, destructors in C# can have either public or protected access modifiers. However, if a class has a destructor, it cannot be marked as sealed.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is stringbuilder faster than string concatenation c#?
What is expression tree with example?
What is difference between dll and exe in c#?
What does out mean c#?
What is clr namespace?
What is stack and heap?
What is a delegate? How can it works?
What is int16?
Give an example to show for hiding base class methods?
Why do we need delegates in c#?
What are the two kinds of properties?
Can you override private virtual methods?
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)