Write a programme in C++ which read and print employee information with department and pf information using hierarchical inheritance
Question
Solution 1
Sure, here is a simple program in C++ that uses hierarchical inheritance to read and print employee information with department and PF information.
#include<iostream>
using namespace std;
class Employee {
protected:
string name;
int id;
public:
void read() {
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study prob
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solv
Similar Questions
Write a programme in C++ which read and print employee information with department and pf information using hierarchical inheritance
Write a C++ program to demonstrate hierarchical inheritance to get square and cube of a number.
Get the details of employee using objects and then destroy using destructor.After destroying print “Object destructed”
Write a program that would print the information (name, year of joining, salary, address) of threeemployees by creating a class named 'Employee
Write a C program to print the Fibonacci series using recursion and without using recursion.