QuestionQ12Verified/Object-Oriented ProgrammingCopy linkReport a problemAsk AstroTutorSave questionWhat is the expected result of the following code? Ait raises an exceptionBit outputs 2Cit outputs 3Dit outputs 1Show AnswerAnswerExplanationInstance method calls use dynamic dispatch: a.doit() invokes Sub_A.make() and returns 1, while b.doit() invokes Sub_B.make() and returns 2. The printed sum is 3.Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion