How to avoid a class from instantiation?

Answer Posted / sanish joseph

Make an abstract class.abstract class cant b intialized.
I think so....

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use iterators?

818


Is std :: string immutable?

762


Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work

828


What are libraries in c++?

790


How can I learn c++ easily?

823


Incase of a function declaration, what is extern means?

717


Explain the use of vtable.

826


How is c++ used in the real world?

775


If I is an integer variable, which is faster ++i or i++?

791


Does c++ have finally?

739


What are static variables?

811


Is dev c++ free?

785


When to use “const” reference arguments in a function?

793


How does com provide language transparency?

778


What programming language should I learn first?

794