hi,i was writing a hospital program to manage 3 types of patients.(outpatient,inpatient,daypatient)
For example for int variables. we can initially declare it as int a; then do, a=10;
can the same be done for class?
lets say we have a
then we have patient a;Code:class patient{
private:
int name;
int id;
public:
patient(int newName,int newId);
}
then we have a=(name,id);
can that be done for classes ??just like it was done for int variables as show above.
thanx.