Skip to main content

Posts

Showing posts with the label Hybrid Inheritance

C++ Program On Hybrid Inheritance-Display Mark Details Of A Student.

This is a sample program using Hybrid Inheritance. Using Hybrid Inheritance, this program display mark details of a student. #include <iostream.h> #include <conio.h> class student {     private:         int rollno;         char name [20];     public:         void read ( )            {               cout << "\n Enter The Roll Number & Name: ";               cin >> rollno >> name;            }         void show ( )            {               cout << "\n Roll No = " << rollno;               cout << "\n Name = " << name;            } }; class exam_inte...