Answer Posted / jaroosh
To sum up : you CANT declare destructor as static, as you
CANT declare constructor as static, both are responsible for
destroying and creating OBJECTS while static storage means
that methods/members do not belong to any objects but to the
whole class.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What is the error in the code below and how should it be corrected?
What gives the current position of the put pointer?
How is data hiding achieved in c++?
What is pointer to member?
What are advantages of c++?
What is protected inheritance?
What is setfill c++?
What is the most useful programming language?
How do you initialize a string in c++?
what does the following statement mean? int (*a)[4]
What do you mean by translation unit in c++?
What is Destructor in C++?
Explain function overloading
When is the destructor called?
Can we change the basic meaning of an operator in c++?