Is it possible to have Virtual Constructor? If yes, how? If
not, Why not possible?

Answers were Sorted based on User's Feedback



Is it possible to have Virtual Constructor? If yes, how? If not, Why not possible?..

Answer / swarupa.othuri1

There is nothing like Virtual Constructor. The Constructor
can’t be virtual as the constructor
is a code which is responsible for creating an instance of a
class and it can’t be delegated to
any other object by virtual keyword means.

Is This Answer Correct ?    16 Yes 3 No

Is it possible to have Virtual Constructor? If yes, how? If not, Why not possible?..

Answer / mohd waseem

No it is not possible to have a virtual constructor.
Because the constructor is the same as class name and is
used to initialize the data members of class by implicitly
and also explicitly.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More HR Questions Interview Questions

What is the worst mistake that you have committed at your work place?

0 Answers   Amazon,


How you doing?

0 Answers   CGI,


What role do banks play in the economic development of the nation?

0 Answers   IBPS,


Why banking sector and how you are the right person for it?

0 Answers   SEBI,


where do you see yourself in next 5 years?

0 Answers   Fidelity, HPCL, IOCL,






State two of your strengths and weaknesses.

0 Answers   Atos Origin, NIIT,


At Apple we offer a range of equipment and services. How familiar are you with our business?

0 Answers   Apple,


tell me about your groups of friends?

0 Answers   Thomson Reuters,


Your opinion in Make in India?

0 Answers   State Bank Of India SBI,


What are you expecting from Farmfoods in the future?

0 Answers   FarmFoods,


How long do you want to stay in USA and why ?

1 Answers   Microsoft,


Debenture,Mutual Fund& bonds Types?

0 Answers   AXA, Synapse India,


Categories