Do we have private destructors?

Answer Posted / jack

No we cannot have private destructors and private
constructors.........

Is This Answer Correct ?    4 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When is the destructor called?

584


Can you write a function similar to printf()?

647


Does there exist any other function which can be used to convert an integer or a float to a string?

625


How do you define/declare constants in c++?

581


What is anonymous object in c++?

604






Can union be self referenced?

555


Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort

611


What is a dll entry point?

535


True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends

1824


What is virtual destructor ans explain its use?

583


What is #include c++?

542


How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?

620


Explain the use of vtable.

597


What is the difference between strcpy() and strncpy()?

587


What is fixed in c++?

562