Discussion :: Constructors and Destructors
-
What will be the output of the following program?
#include class GateBase { public: int x, y; GateBase(int xx = 0, int yy = 5) { x = ++xx; y = --yy; } void Display() { cout class GateDerived : public GateBase { public: void Increment() { y++; } void Display() { cout }: } int main() { GateDerived objGate; objGate.Increment(); objGate.Display(); return 0; }
Answer : Option B
Explanation :
No answer description available for this question.
Be The First To Comment

Whatsapp
Facebook