Can we have "Virtual Constructors"?

Answer Posted / kaydee

Of course there is "Virtual Constructor" in design
pattern's world. This is another name of "Factory Method",
a creational design pattern.

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain deep copy?

689


What are function prototypes?

813


What are static and dynamic type checking?

702


What is namespace std; and what is consists of?

780


Can you overload the operator+ for short integers?

688






Explain about vectors in c ++?

681


What is the difference between a "copy constructor" and an "assignment operator" in C++?

712


Is c# written in c++?

621


What is the type of 'this' pointer?

698


What is the difference between *p++ and (*p)++ ?

860


What does ctime() do?

691


What is &x in c++?

662


Define a nested class.

696


Ask to write virtual base class code?

2305


Explain the scope of resolution operator.

725