chore: Add course material
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
|
||||
|
||||
#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
|
||||
Reference in New Issue
Block a user