23 lines
358 B
C++
23 lines
358 B
C++
|
|
|
|
#ifndef PERSONENTRY_H
|
|
#define PERSONENTRY_H
|
|
|
|
#include "Entry.h"
|
|
|
|
class PersonEntry : public Entry {
|
|
public:
|
|
PersonEntry(std::string name, std::string phone);
|
|
|
|
void print(std::string indent = "") const;
|
|
|
|
std::string getPhone() const;
|
|
|
|
void accept(EntryVisitor &) const;
|
|
|
|
private:
|
|
std::string _phone;
|
|
};
|
|
|
|
#endif
|