What is the need of a destructor? Explain with the help of an example.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

Are c and c++ different?

0 Answers  


char *ch = "abcde"; char c[4]; how to copy 'ch' to 'c'?

4 Answers   Thomson Reuters,


which is the easy way to divide any integer by 2?

2 Answers   Persistent,


What is the difference between #import and #include in c++?

0 Answers  


What is the difference between Pointer and a Reference? When you would use them?

4 Answers   Wipro,






How do you remove an element from a set in c++?

0 Answers  


What is a character in c++?

0 Answers  


What is main function in c++ with example?

0 Answers  


If a function doesn’t return a value, how do you declare the function?

0 Answers  


what is importance of data sturture in a programming language?

22 Answers   L&T, TCS, Wipro,


If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?

0 Answers  


What is flush programming?

0 Answers  


Categories