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

Why do we need pointers?

585


What are the rules about using an underscore in a c++ identifier?

636


What is ios in c++?

648


What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass

691


What is runtime errors c++?

576






Is java made in c++?

585


What do c++ programmers do?

558


How do you clear a buffer in c++?

543


Define whitespace in C++.

758


What is a pdb file?

543


Is c++ the most powerful language?

570


the maximum length of a character constant can be a) 2 b) 1 c) 8

602


Can there be at least some solution to determine the number of arguments passed to a variable argument list function?

608


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

660


State two differences between C and C++.

610