Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update profile.hpp
  • Loading branch information
GSMgeeth authored May 16, 2022
commit 6116d9ef31668e43124a1c57760f879c8b25b929
26 changes: 13 additions & 13 deletions 7-classes-and-objects/profile.hpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#include <string>
#include <vector>

class Profile {
private:
std::string name;
int age;
std::string city;
std::string country;
std::string pronouns;
std::vector<std::string> hobbies;
private:
std::string name;
int age;
std::string city;
std::string country;
std::string pronouns;
std::vector<std::string> hobbies;

public:
Profile(std::string new_name, int new_age, std::string new_city, std::string new_country, std::string new_pronouns = "they/them");
std::string view_profile();
void add_hobby(std::string new_hobby);

};
public:
Profile(const std::string new_name, const int new_age, const std::string new_city, const std::string new_country, const std::string new_pronouns = "they/them");
void add_hobby(const std::string &new_hobby);
std::string view_profile();
};