#include <iostream>
using namespace std;
class Employee
{
/*These are attributes of a Employee class*/
public:
string Name;
string Company;
int Age;
/*This is a method of class*/
void IntroduceYourself()
{
cout<<"Name - "<< Name << endl;
cout<<"Company - "<< Company << endl;
cout<<"Age - "<< Age << endl;
}
/*This is user-defined constructor of class*/
Employee (string name, string company, int age)
{
Name = name;
Company = company;
Age = age;
}
};
int main ()
{
/*Creating 1st instance of Employee class*/
Employee employee1 = {"Danish", "Amazon" , 22};
employee1.IntroduceYourself();
/*Creating 2nd instance of Employee class*/
Employee employee2 = {"Aqib", "Accountancy" , 23};
employee2.IntroduceYourself();
}