hey guys,
I`m trying to overload operator = in my class in windows application`s form , I`m not sure what is my problem,would you take a look at my code?
public struct Customer
{
// Public members
// public string Name;
public string Name;
public string ID;
public string Address;
public string Hour;
public Customer operator +(Customer ob)
{
this.Name = ob.Name;
this.ID = ob.ID;
this.Address = ob.Address;
this.Hour = ob.Hour;
return *this;
}
}