Can we have "Virtual Constructors"?

Answer Posted / vighnesh

Yes there is no virtual constructors.I can think a a reason
may be because a constructor is never inherited so there is
no polymorphism etc involved .

Is This Answer Correct ?    10 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

602


What are pointer-to-members? Explain.

636


Differentiate between a pointer and a reference with respect to c++.

699


Can a list of string be stored within a two dimensional array?

579


Can we use struct in c++?

597






What are the extraction and insertion operators in c++? Explain with examples.

655


What is conditions when using boolean operators?

607


What is c++ flowchart?

681


Explain the benefits of proper inheritance.

642


What are the uses of pointers?

583


Can you please explain the difference between static and dynamic binding of functions?

572


What are special characters c++?

566


Is c++ built on c?

565


Explain the isa and hasa class relationships. How would you implement each?

617


Can member functions be private?

602