'method' vs. 'message' vs. 'function' vs. '???'

后端 未结 11 947
北荒
北荒 2020-12-24 12:59

I recently asked a question about what I called \"method calls\". The answer referred to \"messages\". As a self-taught hobby programmer trying to phrase questions that don\

11条回答
  •  既然无缘
    2020-12-24 13:43

    Here's some simplified definitions:

    methods/subroutines/voids: perform an action

    functions: perform an action and return a value

    events: are called when an object is acted upon

    handlers: are the functions/methods that handle the events


    PS: this is a perfect example of why SO should support DL/DT/DD tags.

提交回复
热议问题