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

How does com provide language transparency?

695


what are the iterator and generic algorithms.

1568


Can a built-in function be recursive?

677


what is data abstraction in C++?

739


Difference between pointer to constant and constant pointer to a constant. Give example.

738






What is a tuple c++?

636


How would you find out if a linked-list is a cycle or not?

640


Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.

694


Is multimap sorted c++?

650


What is abstraction in c++?

765


Can constructor be private in c++?

710


Can we define a constructor as virtual in c++?

688


Can we overload operator in c++?

656


How does a copy constructor differs from an overloaded assignment operator?

666


What is c++ virtual inheritance?

689