In Objective-C, does the binding of method really happen at “run-time”?

前端 未结 4 1460
忘了有多久
忘了有多久 2021-01-24 00:41

I heard that Objective-C is influenced by the \"message passing mechanism\" of SmallTalk.

Objective-C, like Smalltalk, can use dynamic typing: an object

4条回答
  •  旧巷少年郎
    2021-01-24 01:00

    Because the IDE can infer the obvious error from the context.

    When you write if (a = 1),you will get a warning. A good IDE should help you find mistakes as early as possible.

提交回复
热议问题