Question discussion

If show() in the previous question were NOT declared virtual in the Base class, what would the output be?

549Medium DSSSB TGT Computer Science 0 replies 1 views
0
If show() in the previous question were NOT declared virtual in the Base class, what would the output be?
  • ABase
  • BDerived
  • CCompilation error
  • DUndefined behavior
Correct answer: A

Discussion 0

Nobody has replied yet. Start the discussion!