Discussion :: Functions - C++
-
What will be the output of the following program?
#include class BaseCounter { protected: long int count; public: void CountIt(int x, int y = 10, int z = 20) { count = 0; cout" " " " 0; } BaseCounter(int x) { count = x ; } }; class DerivedCounter: public BaseCounter { public: DerivedCounter() { } DerivedCounter(int x): BaseCounter(x) { } }; int main() { DerivedCounter objDC(30); objDC.CountIt(40, 50); return 0; }
Answer : Option C
Explanation :
No answer description available for this question.
Be The First To Comment

Whatsapp
Facebook