Question: A operator + (const A& otherObject) const; |Overloading Operators| What the meaning of the & and the two const? A A::operator + (const A& otherObject)

A operator + (const A& otherObject) const;
|Overloading Operators|
What the meaning of the & and the two const?
A A::operator + (const A& otherObject) const
{
}
In this function def why do we need the class name twice? A A::operator?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!