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

Which OS do you use?

0 Answers   BirlaSoft,


how many brothers and sisters you have?

0 Answers   Impetus,


Would you like doing repetitive work?

0 Answers   IndiGo Airlines,


Explain complete process followed for the development of project?

3 Answers   Microsoft,


If offered the job, how long do you plan to stay at CarMax?

0 Answers   CarMax,






what are your greatest weakness?

13 Answers   TCS,


Why do you want to join Accenture ?

9 Answers   Accenture, Amazon, IBM,


I have applied to accenture in-person and they have scheduled me interview at 26thjuly but they have not shared me venue details and still my candidate status is showing as "scheduled for weeken walkin"? what should i do now?

0 Answers   Accenture,


What will you do if you're not selected?

0 Answers   HAL, Honeywell, Zomato,


Tell about yourself?

8 Answers   Microsoft, Oracle, TCS,


Discuss something on any topic of your interest for one minute.

0 Answers   IBPS,


What do you think, would you be willing to travel for work?

0 Answers   McDonalds, State Street,


Categories