Files
cppcourse/397/SolutionEx71/CompanyEntry.h
T
2026-10-05 11:27:21 +02:00

22 lines
444 B
C++

#ifndef COMPANYENTRY_H
#define COMPANYENTRY_H
#include "Entry.h"
class CompanyEntry : public Entry {
public:
CompanyEntry(std::string name, std::string category, std::string phone);
void print(std::string indent = "") const;
std::string getPhone() const;
std::string getCategory() const;
void accept(EntryVisitor &) const;
private:
std::string _category;
std::string _phone;
};
#endif