Write a c++ program to implement multilevel inheritance
#include<iostream> using namespace std; class student { protected: int rollno; public: void get_number(int n); void show_number (); }; void student::get_number(int n) { rollno=n; } void student::show_number() { cout<<“\n the roll number \n”<<rollno; } class test:public student { protected: float sub1; …
Write a c++ program to implement multilevel inheritance Read More »