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

Define private, protected and public access control.

613


Explain the advantages of using friend classes.

598


How many types of classes are there in c++?

604


What is iterator in c++?

630


What do you mean by function and operator overloading in c++?

617






what is a reference variable in C++?

674


Can we overload operator in c++?

561


What is the difference between an array and a list?

595


What is c++ w3school?

638


Do you know the use of vtable?

644


Is c++ slower than c?

580


How do you establish an is-a relationship?

627


What do you understand by zombie objects in c++?

622


Why is c++ still used?

615


Is c++ vector a linked list?

556