1. Engineering
  2. Computer Science
  3. you need to write the following contacthpp your...

Question: you need to write the following contacthpp your...

Question details

You need to write the following:

● contact.hpp

○ Your class must be named Contact

○ Private members

■ string name

■ string telNum

■ string email

○ Public members

■ Default constructor that initializes the values to:

● name: “John Doe” ● telNum: “555­555­5555” ● email: ”

■ Constructor that takes arguments (this can be combined with your default if you know how)

● order: name, telNum, email

■ Copy constructor

■ Overloaded == operator

● returns true if all the private data members from LHS and RHS are the same

■ Overloaded != operator

● returns true if any of the private data members from LHS and RHS are not the same

■ Setters and Getters for each private data member

● setName, setTelNum, setEmail ● getName, getTelNum, getEmail ● contact.cpp

○ Implement the above mentioned member functions as specified

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution