πŸ“Š C++
Q. In case of inheritance where both base and derived class are having constructors, when an object of derived class is created then___________ .
  • (A) constructor of derived class will be invoked first
  • (B) constructor of base class will be invoked first
  • (C) constructor of derived class will be executed first followed by base class
  • (D) constructor of base class will be executed first followed by derived class
πŸ’¬ Discuss
βœ… Correct Answer: (D) constructor of base class will be executed first followed by derived class

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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