Well, you can do that but I don't think that there's any reason to. You don't need two of the same class...Just make one class and when you declare your class type variable, make it an array. Example:
Code:class Person { public: int GetAge(); private: int age; }; int Person::GetAge() { return age; } int main() { Person person[2]; //2 different people cout<<"Person 1's age: "<<person[0].GetAge(); cout<<"Person 2's age: "<<person[1].GetAge(); return 0; }