Can we have "Virtual Constructors"?

Answer Posted / nishikant sahu

of course no such concept lie within C++ ,but we can achieve
this effect. Abstract Factory method show this type of effect.

Is This Answer Correct ?    4 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is near, far and huge pointers? How many bytes are occupied by them?

663


What is the use of endl in c++ give an example?

618


What are the differences between the function prototype and the function defi-nition?

625


What is a terminating character in c++?

770


What it is and how it might be called (2 methods).

660






Explain differences between new() and delete()?

622


What is input operator in c++?

591


What do c++ programmers do?

558


How do you compile the source code with your compiler?

620


List the advantages of inheritance.

645


Can I learn c++ without learning c?

563


What is #include iostream?

743


What is c strings syntax?

610


What are arithmetic operators?

544


Can char be a number c++?

599