C++ Programming :: References
-
Which of the following statement is correct about the program given below?
#include int i, j; class Freshergate { public: Freshergate(int x = 0, int y = 0) { i = x; j = x; Display(); } void Display() { cout" "; } }; int main() { Freshergate objBix(10, 20); int &s = i; int &z = j; i++; cout" " return 0; } -
Which of the following statement is correct about the program given below?
#include int x, y; class BixTest { public: BixTest(int xx = 0, int yy = 0) { x = xx; y = yy; Display(); } void Display() { cout" " " "; } }; int main() { BixTest objBT(10, 20); int = x; int &ry = y; ry = x; rxr= y; coutreturn 0; } -
Which of the following statement is correct about the program given below?
#include class FresherGate { int a, b, c; public: void SetValue(int x, int y ,int z) { a = x; b = y; c = z; } void Display() { cout" " " " int main() { FresherGate objBix; int x = 2; int &y = x; y = 5; objGate.SetValue(x, ++y, x + y); objGate.Display(); return 0; } -
Which of the following statement is correct about the program given below?
#include class FresherGate { int x, y; public: FresherGate(int xx = 0, int yy = 0) { x = xx; y = yy; } void Display() { cout" " operator +(IndiaBix z) { FresherGate objTemp; objTemp.x = x + z.x; objTemp.y = y + z.y; return objTemp; } }; int main() { FresherGate objGate1(90, 80); FresherGate objGate2(10, 20); FresherGate objSum; FresherGate &objRef = objSum; objRef = objGate1 + objGate2; objRef.Display(); return 0; }

Whatsapp
Facebook