Java
Programming and Technical
What is constructor and virtual
function? Can we call a virtual function in a
constructor?
Read Solution (Total 1)
-
- Calling virtual functions from a constructor or destructor is dangerous and should be avoided whenever possible. All C++ implementations should call the version of the function defined at the level of the hierarchy in the current constructor and no further.
- 7 years agoHelpfull: Yes(0) No(0)
Java Other Question