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 studentpublic: int marks;s; class streamint total;; class topper:public student, public stream;
class studentint marks;; class stream; class topper: public student;
class studentint 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
