Good day developers.
So there is the problem:
I need my class MyClass
implements the interface IMyInterface
with method doSomething();
and overrides method doSomethiing()
the other class let's call him TheOtherClass
also implements IMyInterface
and overrides method doSomethiing()
and plus realize some logic of this doSomething()
method(In TheOtherClass
).
Question:
- How can I make
doSomething()
method implemented inMyClass
triggerdoSomething()
fromTheOtherClass
automaticaly - Also if
MyClass
invoked I wantdoSomethig()
method invoke automaticaly??