// Justin C. Miller
// University of Wisconsin Oshkosh
// Made for: http://www.geocities.com/neonprimetime.geo/index.html
// Date: 2001
// Borland Builder 4.0
#include
#include
class CAT
{
private:
char * name ;
int age ;
public:
CAT() ;
~CAT() ;
void DisplayInformation() ;
void SetCatInformation() ;
};
CAT::CAT()
{name = new char[30] ; age = 0 ;}
CAT::~CAT()
{delete name ;}
void CAT::SetCatInformation()
{
cout << "Please enter the cat's name..." << endl ;
cin >> name ;
cout << "Please enter the cat's age..." << endl ;
cin >> age ;
}
void CAT::DisplayInformation()
{
cout << "My Cat's Name is " << name << endl ;
cout << "The cat's age is " << age << endl ;
}
int main()
{
CAT tigger ;
tigger.SetCatInformation() ;
tigger.DisplayInformation() ;
getch() ;
return 0 ;
}
               (
geocities.com/neonprimetime.geo/cpp)                   (
geocities.com/neonprimetime.geo)