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

Do you have the qualities and skills necessary to succeed in your career?

0 Answers   CarMax, Starbucks,


What is your father's professional background?

0 Answers   SEBI,


Explain how you would be an asset to NetApp?

0 Answers   NetApp,


Why did you decide to pursue your career at Salesforce?

0 Answers  


If your client gives a change and asks for early delivery. How will you manage?

3 Answers   Microsoft,






Tell me about a time when you disagreed with your boss.

0 Answers   BlackRock,


This is a common question everybody knows it.But what is the best answer plz tell me. the question is...... Why do u want to leave your previous company?

22 Answers   ADP, Bank Of America, Estel Technologies, Genpact, IBM, Quatrro, Wipro,


if you are posted at the location where there is no progress, how will you manage to work?

0 Answers   RBI,


Why NIIT Technologies?

0 Answers   NIIT,


What negative points will your friends say about you?

0 Answers   Fidelity,


What are your strenghts and weaknesses?

0 Answers   TCS,


what do you know about our company philosophy?

0 Answers   Essar,


Categories