1.

In Delphi ______________(a) Method overriding is done implicitly(b) Method overriding is not supported(c) Method overriding is done with directive override(d) Method overriding is done with the directive virtuallyThis question was posed to me at a job interview.My doubt is from Overriding Member Functions in chapter Member Functions & its Types of Object Oriented Programming

Answer»

Correct answer is (c) Method overriding is done with directive override

Best explanation: This is POSSIBLE but only if the method to be overridden is marked as dynamic or virtual. It is inbuilt restriction of programming LANGUAGE. This is done to REDUCE the accidental or unintentional overriding.



Discussion

No Comment Found

Related InterviewSolutions