1.

Which language doesn’t support the method overriding implicitly?(a) C++(b) C#(c) Java(d) SmallTalkThe question was asked during an interview.I would like to ask this question from Overriding Member Functions topic in section Member Functions & its Types of Object Oriented Programming

Answer»

Correct answer is (b) C#

To explain I would SAY: The feature of METHOD overriding is not provided in C#. To override the methods, ONE must use override or virtual keywords explicitly. This is done to REMOVE accidental changes in program and unintentional overriding.



Discussion

No Comment Found

Related InterviewSolutions