22
假設我有一個實現協議的父類:一個子類是否在Objective-C中繼承其父類的協議?
@interface GameViewController : UIViewController<GamePrizeDelegate> {
...
}
然後,我做它的子類:
@interface TennisViewController : GameViewController {
...
}
@interface SoccerViewController : GameViewController {
...
}
我必須包括GamePrizeDelegate
也是在子類?協議是否也繼承了?
謝謝!