Issue with Overloading | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
- 1

Issue with Overloading

Can't seem to understand what's wrong in this code. I'm trying to overload the + operator so i can add these two queue class objects but it states the class in incomplete. What am i missing? Line 40 is where my code starts https://code.sololearn.com/cd11f8Xy8j8a/?ref=app

31st Dec 2021, 9:50 AM
Slick
Slick - avatar
2 Réponses
+ 3
Queue constructor+(Queue &obj) ? should be:- Queue operator+(Queue &obj) I haven't checked anything else yet.
31st Dec 2021, 9:57 AM
rodwynnejones
rodwynnejones - avatar
+ 1
Thanks rodwynnejones! Keyword mixup
31st Dec 2021, 9:59 AM
Slick
Slick - avatar