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