Answer Posted / shashank agrawal
No, This is not possible because virtual is used for avoid
overriding and the constructor is called when the object of
that class has been created so in this case overriding is
not possible then to make the constructor as virtual is
useless.so we dont create it virtal.
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
Can class objects be passed as function arguments?
What is the difference between public, private, and protected access?
In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?
When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?
How const int *ourpointer differs from int const *ourpointer?
Can you please explain the difference between using macro and inline functions?
What do you mean by volatile and mutable keywords used in c++?
What do you mean by translation unit in c++?
What is the main function c++?
Which operator cannot overload?
Differentiate between a copy constructor and an overloaded assignment operator.
Is c++ a high level language?
What is operators in c++?
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
Explain what is class definition in c++ ?