Home » C++ Programming » Functions

Which of the following statement is correct about the program given below? #include<iostream.h> class CuriousTabSample { private: int AdditionOne(int x, int y = 1) { return x * y; } public: int AdditionTwo(int x, int y = 1) { return x / y; } }; int main() { CuriousTabSample objCuriousTab; cout<<objCuriousTab.AdditionOne(4, 8)<<" "; cout<<objCuriousTab.AdditionTwo(8, 8); return 0; }

← Previous

Discussion & Comments

No comments yet. Be the first to comment!