+ 1

Stuck

for c++ the more on classes segment and operator overloading the first question idk. pllss help

24th Oct 2017, 5:19 PM
samuel
2 ответов
+ 2
Operator overloading is where you have a function with the same name that takes different parameters. Like this: class Person { public: Person(); Person(int x); }; The person class has 2 default constructors that is overloaded. Hope this helps. Let me know if I need to go into more detail. -Craig
24th Oct 2017, 6:12 PM
Craig
Craig - avatar
+ 1
Thank you so much I got it!
25th Oct 2017, 2:00 PM
samuel