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{ };
(a).class student{public: int marks;}s; class stream{int total;}; class topper:public student, public stream{ };
need an explanation for this answer? contact us directly to get an explanation for this answer