Okay i have this question: I am supposed to code the implementation of a person class (2 person objects are equal if they have the same name)
This is what i have done so far.
#include <iostream>
#include <string>

using namespace std;

class Person
{
public:
bool operator==(const Person&) const;
Person();
Person(string n);

private:
string name;
};
bool Person::operator ==(const Person& personName) const
{
return (name == personName.name);
}

Am i completely wrong ?? Or is it right any comments gr appre