00001 #ifndef _PERSON_HPP_
00002 #define _PERSON_HPP_
00003
00004 #include <string>
00005
00011 class Person {
00012
00013
00014
00015 protected:
00016 std::string vorname;
00017 std::string nachname;
00018 const int id;
00019
00020 static int count;
00021 const static int answer;
00022
00023 public:
00027 Person(std::string vorname, std::string nachname);
00028 virtual ~Person();
00029 virtual std::string toString() const;
00030 virtual void work() = 0;
00031 virtual Person& operator=(const Person& p);
00032
00033 static int getCount();
00034 };
00035
00036 #endif