开发者

If an abstract entity has it's own custom class, is that class usually abstract, too?

I开发者_高级运维f an abstract entity has it's own custom class, is that class usually abstract, too?


Objective-C does not have an abstract class definition at this time. Therefore the subclass for an entity is not abstract but you can treat it as such if you so choose.

There is no one-to-one relationship between entities and classes so you can have one class that is being used by multiple entities if you so choose.


Classes only are abstract if they are marked with the keyword abstract. So the inner custom class may be or may not be abstract, it's independent of its "container".


Not necessary. It depends.


a cladd needs to declare abstract untill all of these method have implementation,it depends on if your custom classes are concrete then no....

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜