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

Would you like to ask us anything

0 Answers   Accenture,


How would you add value to our company?

0 Answers   HCL,


What position do you prefer on a team working on a project?

6 Answers   CMC,


What was the most stressful situation you have faced?

0 Answers   Motorola,


What were your core subjects in graduation?

0 Answers  






What was the toughest challenge you've ever faced?

1 Answers  


About the current employer ?

1 Answers   FMCG, HCCBPL Hindustan Coca-Cola Beverages Private Limited, Hindustan Unilever Limited, MMTS,


How long are you expected to work for us if hired?

0 Answers   John Deere,


What are you looking for in Cisco ?

0 Answers   Cisco,


Are you willing to relocate to any different city immediately for a project?

0 Answers   BEL,


Do you have short term goals as well?

0 Answers   Alcatel-Lucent,


If employee does not perform what organization should do?

6 Answers  


Categories