I have an enum in my code that is the following: enum Status {In-Active, Active};
.
A status object is passed to a Person
object as a parameter, so I wa
Enum objects are being parsed at compile time and it can only contain constant integer values.
Person p(name, age, status); //Here without using status object you should send a value directly like "In-Active" or "Active". So there would be no input from the user regarding th status field.
enum Status {InActive, Active};
Status status;
cout << "Enter status: "; cin >> status;