Question: Which among the following is correct for multiple inheritance? class student { public: int marks; } s; class stream { int total; } ; class

Which among the following is correct for multiple inheritance?
class student{public: int marks;}s; class stream{int total;}; class topper:public student, public stream{};
class student{int marks;}; class stream{}; class topper: public student{};
class student{int marks;}; class stream:public student{};
class student{}; class stream{}; class topper{};

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!