Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what is the total meanings and use of the word "~stack();" and also the symbol of
#1
When an object is destroyed, its destructor (if it has one) is automatically called. There are many reasons why a destructor may be needed. For example, an object may need to deallocate memory that it had previously allocated or it may need to close a file that it had opened. In C++, it is the destructor that handles deactivation events. The destructor has the same name as the constructor, but it is preceded by a ~. For example, in our Stack class, the name of destructor will be ~Stack();

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  how stack operation proves costly during traversing a tree Vuhelper 0 1,519 01-04-2012, 10:43 PM
Last Post: Vuhelper
  which situation we use stack.h and why we use stack.cpp Vuhelper 0 3,003 11-05-2011, 05:06 PM
Last Post: Vuhelper
  stack during function call in C++ 2011 Vuhelper 0 2,032 11-05-2011, 05:05 PM
Last Post: Vuhelper
  i solve the assignment i mean which ms word doc file can i use sana.pari 1 1,895 04-24-2011, 06:52 PM
Last Post: Support

Forum Jump:


Users browsing this thread: 1 Guest(s)