AmbushedRaccoon

Interview Collection Threads

Sep 26th, 2025
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1.  
  2. struct Person {
  3.     std::string id;
  4.     std::string name;
  5.     int age;
  6. };
  7.  
  8. class PersonRepository {
  9.  
  10. public:
  11.     void addPerson(const Person& p) {
  12.     }
  13.     std::optional<Person> getPerson(const std::string& id) const {
  14.     }
  15. };
Advertisement
Add Comment
Please, Sign In to add comment