Can we declare destructor as static? Explain?

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


Please Help Members By Posting Answers For Below Questions

What is the purpose of ios::basefield in the following statement?

1008


Write about the access privileges in c++ and also mention about its default access level?

818


What is c++ & why it is used?

800


What is the difference between an external iterator and an internal iterator?

849


Is c++ still being used?

769


How is computer programming useful in real life?

779


What is the most useful programming language?

809


Why is "using namespace std;" considered bad practice?

835


Does c++ have a hash table?

730


What is decltype c++?

739


Write a program which employs Recursion

982


What is stoi in c++?

912


Explain the properties and principles of oop.

721


What is a unnitialised pointer?

772


What are the advantages of prototyping?

783