views:

33

answers:

1

I am implementing view controllers that shall have different behaviour. They have a common base class, which we will call "SuperClass".

In SuperClass there is a method A which sends a message to method B. Let's say i create a SubClass and overwrite B.

If i now create an instance of SubClass and call A, will A call B from SuperClass or from SubClass?

+1  A: 

B from SubClass

Ross
thanks a lot for helping out
Tomen