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

how will you cut an equilateral triangle into 4 equal equilateral triangles?

1 Answers   EXL,


How has your college experience prepared you for a career at Starbucks?

1 Answers   Starbucks,


Tell us about economy of India.

1 Answers   State Bank Of India SBI,


Which newspaper do you read? Why do you prefer it over the others?

1 Answers   GE,


How long whould it take you to make a meaningful contribution to our firm?

3 Answers   Lucent,


What is your development process?

1 Answers   Mozilla,


What you about our organization ?

1 Answers   Agilent,


What is your idea towards your own working style?

1 Answers   Aricent,


If u r not happy with your job, how will you let your superior know?

1 Answers   Atos Origin,


An employee needs to assign places to 6 people. The places are in a row and are separated by six-inch tall slabs so that voice, audio and cigarette smoke easily pass to next cabin. Donald uses telephone for most of the time. Miss. Nandy is senior and has to be given 5th seat, which has a large window. Robert and brown needs to be placed next by next for discussions. Tim, brown, henry used to smoke. Miss. Nandy doesn’t like smoking. a. Who will sit near miss. Nandy b. Which place does Tim gets? C.Which seat can Tim, brown, henry get

4 Answers  


What are the documents required to open an account?

1 Answers   IBPS,


What can you tell us about E-Commerce?

1 Answers   Amazon,


Categories