Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Virtual Destructor - What is the need for “Virtual Destructor”?
Virtual Destructor - What is the need for “Virtual Destructor”?
✍: .fyicenter.com
Destructors are declared as virtual because if do not declare it as virtual the base class destructor will be called before the derived class destructor and that will lead to memory leak because derived class’s objects will not get freed.Destructors are declared virtual so as to bind objects to the methods at runtime so that appropriate destructor is called.
2012-04-03, 3555👍, 0💬
Popular Posts:
When should the register modifier be used? Does it really help? The register modifier hints to the c...
Is Session_End event supported in all session modes ? Session_End event occurs only in “Inproc mode”...
What are the types of variables x, y, y and u defined in the following code? #define Atype int* type...
How can you implement MVC pattern in ASP.NET? The main purpose using MVC pattern is to decouple the ...
If client side validation is enabled in your Web page, does that mean server side code is not run? W...