0

This functions overloading please tell me...

#include <iostream.h> class parent class { public: int add(int num1, int num2); }; Class child class :: parent class { Public: int add(int num1, int num2, int num3); }; int main() { Child class s; Add(10,20,30); Add(10,20); cout<<add<<endl; cout<< add<<endl; return 0; }

5th Mar 2020, 4:48 AM
Kodeesh Warar
Kodeesh Warar - avatar
2 odpowiedzi
+ 3
Yes
5th Mar 2020, 5:42 AM
Sumit Programmer😎😎
Sumit Programmer😎😎 - avatar
+ 1
There are syntax errors in your code. The thread linked below is a pretty good discussion related to your thread's topic (function overloading). Might worth checking out 👍 https://code.sololearn.com/c5F65YeL5lnf/?ref=app https://www.sololearn.com/discuss/2189306/?ref=app (Edited)
5th Mar 2020, 7:16 AM
Ipang