Can destructors have access modifiers?



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

Post New Answer

More C Sharp Interview Questions

Is stringbuilder faster than string concatenation c#?

1 Answers  


What is expression tree with example?

1 Answers  


What is difference between dll and exe in c#?

1 Answers  


What does out mean c#?

1 Answers  


What is clr namespace?

1 Answers  


What is stack and heap?

7 Answers   Wipro,


What is a delegate? How can it works?

1 Answers   Siebel,


What is int16?

1 Answers  


Give an example to show for hiding base class methods?

1 Answers  


Why do we need delegates in c#?

1 Answers  


What are the two kinds of properties?

10 Answers   Wipro,


Can you override private virtual methods?

4 Answers  


Categories