Answered Questions

  • What is out put of C++ code?

    {geshibot language="c"}class base { public: virtual void display(int i = 10) { cout

    rohit suri

    • Sep 11th, 2014

    Base class display method will called


    • Apr 10th, 2013

    Overriding function default argument takes more precedence ,Hence based class default argument 10 will be initialized to i.So i value holds 10 will be printed for this call with derived count statement.