CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS MICROSOFT C# DETAILS
Question :
What is the order of destructors called in a polymorphism hierarchy


Category C# Interview Questions
Rating (0.0) By 0 users
Added on 7/28/2006
Views 579
Rate it!
Answers:

Answer (A) is correct. Destructors are called in reverse order of constructors. First destructor of most derived class is called followed by its parent's destructor and so on till the topmost class in the hierarchy.

You don't have control over when the first destructor will be called, since it is determined by the garbage collector. Sometime after the object goes out of scope GC calls the destructor, then its parent's destructor and so on.

When a program terminates definitely all object's destructors are called.





If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer
What is the use of fixed statement

View Answer
Can static methods be overridable?

View Answer
In C# a technique used to stream the data is known as




View Answer
How to implement multiple inheritence in C#

View Answer
In the following cases which is not function overloading

View Answer
What is an indexer in C#

View Answer
The C# keyword int maps to which .NET type

View Answer
Windows services created by C# app run only

View Answer
Net Remoting doesn?t allow creating stateless & stateful Remote objects

View Answer
How do you import Activex component in to .NET

View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL C# Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/8950/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

1.31