blob: 57a64380f03ae039e857c54f1c1ea74178231aeb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#pragma once
#include <string>
struct ContactDetails
{
static ContactDetails makeDetails(const std::string& telephone_number,
const std::string& personal_email);
friend std::ostream& operator<<(std::ostream& os, const ContactDetails& dt);
private:
const std::string phone_;
const std::string email_;
ContactDetails(const std::string& telephone_number,
const std::string& personal_email);
};
|