What is virtual constructor paradigm?

Answer Posted / priyanka kokil

I want to modify the above answer. A constructor cannot be
virtual because at the time when the constructor is invoked
the virtual table would not be available in the memory.
Hence we cannot have a virtual constructor. But we can have
virtual destructor which is defined in Answer #2

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is long in c++?

737


Is rust better than c++?

607


How to declare an array of pointers to integer?

583


What is a pdb file?

542


Is c++ an integer?

579






What is meant by iomanip in c++?

612


Explain unexpected() function?

584


What do you mean by persistent and non persistent objects?

740


what is software cycle? What is a mission critical system ? What is the important aspect of a real-time system ? Explain the difference between microkernel and macro kernel. Give an example of microkernel.Why paging is used ? Which is the best page replacement algo and Why ? What is software life cycle ? How much time is spent usually in each phases and why Which one do U want to work if selected in Honeywell ? Which are the different types of testing ? What is a distributed system ? Some questions about CSP. Which languages do U know ? What are the differences between Pascal and C. questions from Compiler construction and Lisp. Which are the different computer architecture? What is the requirement in MIMD ? What is the difference between RISC and CISC processors ? Difference between loosely coupled and tightly coupled systems ? What is an open system?

1773


Is swift better than c++?

540


What is a manipulator in c++?

715


What is static class data?

577


What are the differences between malloc() and calloc()?

615


What is a tree in c++?

565


How should runtime errors be handled in c++?

613