πŸ“Š CPP Programming
Q. Which of the following is true about virtual functions in C++?
  • (A) Virtual functions are functions that can be overridden in derived class with the same signature.
  • (B) Virtual functions enable run-time polymorphism in a inheritance hierarchy.
  • (C) If a function is ‘virtual’ in the base class, the most-derived class implementation of the function is called according to the actual type of the object referred to, regardless of the declared type of the pointer or reference. In non-virtual f
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the above

You must be Logged in to update hint/solution

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
104
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
85%
Success Rate