public interface Character { void reload(Reloadable reloadObjpickup(CQWeapon closeQweapon); void attack();reloadWeaponsList.add(chargeGun);
public final class R
我想将函数的返回类型定义为UIViewController的一个实例,它也符合某个协议(例如,MyProtocol)。这怎么可能呢?//I have also tried with protocol MyProtocol:class {}
/* Here I would like to express that it should return a
* uiviewcontroller conforming t