Sunshine

Sunshine

  • NA
  • 201
  • 26.7k

Inheritance and override

Jul 20 2016 9:12 PM
Hi,
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?
Thanks

Answers (2)