#include<iostream>
#include<string>
usingnamespace std;
class pat{
string name;
float age;
staticint id;
string doctor_name;
public:
pat(string n,float a,string doc){
name=n;
age=a;
doctor_name=doc;
id++;
}
string getname()const{return name;}
void setname(string n){name=n;}
float getage()const{return age;}
void setage(float a){age=a;}
staticint getid(){return ++id;}
string getdoctor_name()const{return doctor_name;}
void setdoctor_name(string doc){doctor_name=doc;}
void print()const{
cout<<"the name of pastion is "<<name<<endl;
cout<<"the age of pastiont is "<<age<<endl;
cout<<"the id of pastiont is "<<id<<endl;
cout<<"the name of doctor is "<<doctor_name<<endl;
}
};
int pat::id=0;
int main(){
pat obj("turky",22,"mohesn");
pat obj2("sowsan",33,"mohesn");
pat obj4("dana",11,"mohesn");
obj.print();
cout<<endl;
obj2.print();
cout<<endl;
obj4.print();
system("pause");
return 0;
}