I tried to create a method that returns the summation of 2 objects from type "distance" here is the method distance add_distance(distance d1); \ in header file
distance distance::add_distance (distance d1) \\ implementation file
{
distance sum;
sum.feet = feet + d1.feet;
sum.length = length + d1.length;
return sum;
}
but during building the program it gives me an error that says "distance: ambiguous symbol" anyone got a solution for this ???? ^^