1 // polimorfikus: mert egyik őse polimorfikus 2 3 #ifndef DIARY_H 4 #define DIARY_H 5 6 #include <iostream> 7 #include <string> 8 #include "list2.h" 9 #include "date.h" 10 11 class diary : public list, public date 12 { 13 public: 14 diary( const char *e, int y=2000, int m=1, int d=1); 15 diary( const char *e, const char *d); 16 diary( const char *e, const date& dd); 17 18 /* virtual */ void print( std::ostream& os) const; 19 private: 20 std::string event; 21 }; 22 23 std::ostream& operator<<( std::ostream& os, const diary& d); 24 25 #endif /* DIARY_H */ 26