#include<iostream>
using namespace std;
class Employee
{
public:
char name[20];
double salary;
int age;

void getData()
{
    cout<<"\nEnter the name of the employee:";
    cin>>name;
    cout<<"\nEnter Salary of the employee:";
    cin>>salary;
    cout<<"\nEnter age of the employee:";
    cin>>age;
}
void Displaydata()
{
 cout<<"\nEmployee Name:"<<name;
    cout<<"\nEmpolyee Salary:"<<salary;
    cout<<"\nEmployee age:"<<age;
}
};
int main()
{
    Employee person;
    person.getData();
    person.Displaydata();
 return 0;   
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: