Q:

Are Constructors and destructors can declare as const?

0

Are Constructors and destructors can declare as const?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer:

Constructors and destructors can’t be declared const or volatile. They can, however, be invoked on const or volatile objects.

 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C++ Interview Questions For Experienced

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Can we make a copy constructor private in c++?... >>
<< Can a copy constructor accept an object of the sam...