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; }
2 Answers
+ 3
Yes
+ 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)