๐Ÿ“ข Too many exams? Donโ€™t know which one suits you best? Book Your Free Expert ๐Ÿ‘‰ call Now!

  • google app store apple app store
  • โœ–

      Question

      What happens if both base and derived classes define a

      function with the same prototype?ย ย 
      A Compiler error during compilation Correct Answer Incorrect Answer
      B Only the base class function is called Correct Answer Incorrect Answer
      C Base and derived class functions are called depending on the object Correct Answer Incorrect Answer
      D Only the derived class function is called Correct Answer Incorrect Answer
      E None of these Correct Answer Incorrect Answer

      Solution

      Base class calls its function; derived class calls its own.ย ย 

      Practice Next
      More Agriculture and RD Questions
      ask-question