Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi guys. This piece of code is User.hpp file Who can help me write User.cpp file for this header file? Thnx in advance. p.S. the

Hi guys. This piece of code is User.hpp file Who can help me write User.cpp file for this header file? Thnx in advance. p.S. the functions do stuff according the naming.
#ifndef USER_H
#define USER_H
#include
#include
class User {
public:
/**
* @brief the default constructor
*/
User() = default;
/**
* constructor with arguments
*/
User(const std::string &t_userName, const std::string &t_userPassword,
const std::string &t_userEmail, const std::string &t_userPhone);
/**
* @brief copy constructor
*/
User(const User &t_user);
/**
* @brief get the name of the user
* @return return a string indicate the name of the user
*/
std::string getName() const;
/**
* @brief set the name of the user
* @param a string indicate the new name of the user
*/
void setName(const std::string &t_name);
/**
* @brief get the password of the user
* @return return a string indicate the password of the user
*/
std::string getPassword() const;
/**
* @brief set the password of the user
* @param a string indicate the new password of the user
*/
void setPassword(const std::string &t_password);
/**
* @brief get the email of the user
* @return return a string indicate the email of the user
*/
std::string getEmail() const;
/**
* @brief set the email of the user
* @param a string indicate the new email of the user
*/
void setEmail(const std::string &t_email);
/**
* @brief get the phone of the user
* @return return a string indicate the phone of the user
*/
std::string getPhone() const;
/**
* @brief set the phone of the user
* @param a string indicate the new phone of the user
*/
void setPhone(const std::string &t_phone);
private:
std::string m_name;
std::string m_password;
std::string m_email;
std::string m_phone;
};
#endif

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analysis In Microsoft Excel

Authors: Alex Holloway

1st Edition

B0CCCPKTTX, 979-8852388452

More Books

Students also viewed these Databases questions

Question

Does Will remind you in any way of someone you know? How so?

Answered: 1 week ago