What is virtual constructor paradigm?

Answer Posted / malini

There is no concept like Virtual Constructor and where as
Constructor cant be virtual. Constructor is a code which is
responsible for creating a instance of a class and it cant
assigned to any other object by using appending
keyword 'virtual'

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random

656


What are the uses of pointers?

582


Can member data be public?

599


What is token c++?

584


What is enum class in c++?

710






What are smart pointers?

672


What is DlgProc?

604


What is c++ hash?

622


Are strings immutable in c++?

657


What is function overriding in c++?

606


When there is a global variable and local variable with the same name, how will you access the global variable?

619


How static variables and local variablesare similar and dissimilar?

564


Why do we use iterators?

622


Define what is constructor?

588


Explain deep copy?

608