Hello guys, I have a problem, I don't understand the answer for the 3rd code project to the "c# intermediate" so anyone help me? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hello guys, I have a problem, I don't understand the answer for the 3rd code project to the "c# intermediate" so anyone help me?

26th Jul 2023, 9:52 AM
Rodion
7 Answers
+ 4
Rodion , Note that If you're having trouble in code, share your code and describe what error message you're receiving. without watching no one can figure out what's going wrong. quick quide.. You can got return by adding the following line of code at the end of your program: public static DancerPoints operator+ (DancerPoints a, DancerPoints b) { string name = a.name + " & " + b.name ; int points = a.points + b.points; DancerPoints res = new DancerPoints (name, points) ; return res; }
26th Jul 2023, 12:27 PM
Darpan kesharwani🇮🇳[Inactive📚]
Darpan kesharwani🇮🇳[Inactive📚] - avatar
+ 2
Share your attempt
26th Jul 2023, 10:52 AM
Sakshi
Sakshi - avatar
+ 2
Okay I will doing it, very very very thanks for that! Darpan Kesharwani!
26th Jul 2023, 12:40 PM
Rodion
+ 1
Okay, thanks for that
26th Jul 2023, 11:11 AM
Rodion
0
This is the code project to medium level of c# course
26th Jul 2023, 11:04 AM
Rodion
0
here you need to overload the + operator, and return a new object total, but I constantly get an error
26th Jul 2023, 11:07 AM
Rodion