Which function(s) out of the following can be considered as an overloaded function(s) in the same program? Also, write the reason for not considering the other(s) as an overloaded function(s)
void Execute(char A,int B); // Function 1
void Execute(int A,char B); // Function 2
void Execute(int P=10) ; // Function 3
void Execute(); // Function 4
int Execute(int A); // Function 5
void Execute(int &K); // Function 6
Advertisement Remove all ads
Solution
void Execute (char A, int B) ; // Function 1
void Execute (int A, char B) ; // Function 2
void Execute (int P=10) ; // Function 3
Concept: Overloaded Constructors
Is there an error in this question or solution?
Advertisement Remove all ads
APPEARS IN
Advertisement Remove all ads
Advertisement Remove all ads