• 1.7k
  • 192
  • 12.5k

Inheritance and override

Jul 20 2016 9:12 PM
I have a class A that inherits another class B and calls a method in Class B. That method in turn calls another method which is overridable in Class B. Now, I want the inner method to be created in the calling Class A. But I noticed that the control comes to the first method in Class B and then goes to the inner method in Class B itself. Is it possible to bypass that inner method and call my method instead?

Brought to you by:

Answers (2)