Is it possible to have Virtual Constructor? If yes, how? If
not, Why not possible?
Answer Posted / 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 View All Answers
Give us details of your present employment status
What brings you here today?
You have 5 jars of pills. Each pill weighs 10 grams, except for contaminated pills contained in one jar, where each pill weighs 9 grams. Given a scale, how could you tell which jar had the contaminated pills in just one measurement?
Tell the key difference between DD and cheque?
You have switched 3 jobs in 2 years - why?
What are the risks involved in buying or selling a company or lending or borrowing money and how can they be mitigated?
How adaptive do you consider yourself to the environment?
Do you have the qualities and skills necessary to succeed in your career at Starbucks?
how can you be useful to our bank?
Why choose a Public sector undertaking (PSU) over a private firm? Aren't they more competitive than us?
What do your parents think about you?
why zomato?
Tell us some of your strengths.
Why is your CGPA low?
How an ED diagram is different from DFD?