This is a sample C++ Program. using inheritance. Using Inheritance, this program accepts details of a student and print marks and percentage using inheritance. #include <iostream.h> #include <conio.h> class person { private: char name [20]; long int phone; public: void read ( ) { cout << " Enter Name & Phone Number "; cin >> name >> phone; } void show ( ) { cout << "\n Name Is: " << name; cout << "\n Phone Number Is: " << phone; ...
All HR and Technical interview questions with answers for freshers and experienced professional. It helps job seekers who are about to attend interviews.