Write a c program to implement hybrid inheritence
#include<iostream> using namespace std; class student { protected: int roll_no; public: void get_no(int x); void put_no(); }; void student::get_no(int x) { roll_no=x; cout<<“the roll is\n”<<roll_no<<“\n”; } void student::put_no() { cout<<“the roll is\n”<<roll_no<<“\n”; } class test:public student { protected: float marks1,marks2; public: void get_marks(float a,float …
Write a c program to implement hybrid inheritence Read More »