Can we declare destructor as static? Explain?

Answer Posted / sunil

declaring destructor and constructor as static is a syntax error

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of seekg in c++?

794


Are c and c++ different?

726


Declare a class vehicle and make it an abstract data type.

726


What are the five basic elements of a c++ program?

823


What is the best c++ ide?

829


What is a template in c++?

1305


Which is most difficult programming language?

781


What is diamond problem in c++?

760


What are the main features of c++?

749


Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened

1336


What is a driver program?

848


Can I learn c++ in a week?

784


Is oops and c++ same?

780


Write a program to interchange 2 variables without using the third one.

802


I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.

821