consolidate all repos to one for archive
This commit is contained in:
24
semester_2/programiranje_2/naloga1101/Address.cpp
Normal file
24
semester_2/programiranje_2/naloga1101/Address.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// 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;
|
||||
}
|
||||
Reference in New Issue
Block a user