Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

Do we have private destructors?

Answer Posted / thuang

In replay to Vishwa,

for empty class, compiler will supply a default constructor
and a destructor for us, their access modifiers were public.

Is This Answer Correct ?    0 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can a struct in c++ differs from a struct in c?

214


Can member functions be private?

229


What is operator overloading in c++ example?

225


What does scope resolution operator do?

204


How can you link a c program with a c function?

231






Why are pointers used?

213


In what situations do you have to use initialization list rather than assignment in constructors?

231


If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?

213


Define whitespace in C++.

268


Define basic type of variable used for a different condition in C++?

256


Explain what are the sizes and ranges of the basic c++ data types?

223


What is :: operator in c++?

206


What is a stack? How it can be implemented?

269


What are the two shift operators and what are their functions?

197


What things would you remember while making an interface?

210