πŸ“Š C++
Q. If a base class destructor is not virtual, then

  • (A) Destructor in derived class can not be called when accessed through a pointer to the base class.
  • (B) It can not be called when accessed from pointer.
  • (C) It can not be called.
  • (D) It can not have a function body.
πŸ’¬ Discuss
βœ… Correct Answer: (A) Destructor in derived class can not be called when accessed through a pointer to the base class.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
259
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
82%
Success Rate