1.

Select the correct statement from the following?(a) Static methods can be a virtual method(b) Abstract methods can be a virtual method(c) When overriding a method, the names and type signatures of the override method must be the same as the virtual method that is being overridden(d) We can override virtual as well as nonvirtual methodsI have been asked this question in a job interview.This interesting question is from Method Overriding topic in portion Object Oriented Concepts of C#

Answer» CORRECT answer is (C) When overriding a method, the names and TYPE signatures of the OVERRIDE method MUST be the same as the virtual method that is being overridden

Easy explanation - None.


Discussion

No Comment Found

Related InterviewSolutions