25 lines
565 B
C++
25 lines
565 B
C++
//
|
|
// Created by Nik on 20/05/2022.
|
|
//
|
|
|
|
#include "Address.h"
|
|
|
|
Address::Address(std::string street, std::string post, std::string country) :
|
|
street(street), post(post), country(country) {}
|
|
|
|
std::string Address::toString() const {
|
|
return street + "," + post + "," + country;
|
|
}
|
|
|
|
void Address::setStreet(const std::string &street) {
|
|
Address::street = street;
|
|
}
|
|
|
|
void Address::setPost(const std::string &post) {
|
|
Address::post = post;
|
|
}
|
|
|
|
void Address::setCountry(const std::string &country) {
|
|
Address::country = country;
|
|
}
|