Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CCustomer::CCustomer(char* name, int age) {
- CCustomer(name, age, true);
- }
- CCustomer::CCustomer(char* name, int age, bool is_male) {
- this->SetName(name);
- this->SetAge(age);
- this->SetGender( (is_male) ? Male : Female );
- }
- CCustomer c1("jojo",34);
- cout << endl << "first CCustomer" << endl;
- c1.Print(cout);
- CCustomer c2("momo",22,true);
- cout << endl << "second CCustomer" << endl;
- c2.Print(cout);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement