chore: Add course material

This commit is contained in:
2026-10-05 11:27:21 +02:00
parent 971813c351
commit e8241fd1ff
660 changed files with 26658 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
#include <iomanip>
#include <iostream>
#include "EntryVisitor.h"
#include "PersonEntry.h"
PersonEntry::PersonEntry(std::string name, std::string phone) : Entry(name), _phone(phone) {}
void PersonEntry::print(std::string indent) const {
std::cout << indent << "Person: " << getName() << ' ' << _phone << '\n';
}
std::string PersonEntry::getPhone() const { return _phone; }
void PersonEntry::accept(EntryVisitor &v) const { v.visit(*this); }