Can we call a virtual function from a constructor?
Answers
Answered by
4
Explanation:
You can call a virtual function in a constructor, but be careful. ... In a constructor, the virtual call mechanism is disabled because overriding from derived classes hasn't yet happened. Objects are constructed from the base up, “base before derived”.
Answered by
8
Answer:
Hope that helps you
Explanation:
Mark my answer in brainlist
Attachments:
Similar questions