var keyword runtime or compile time?

前端 未结 3 569
闹比i
闹比i 2020-12-05 16:45

var keyword gets the type at the runtime or compile time?

or depends?

3条回答
  •  醉话见心
    2020-12-05 17:10

    The var keyword is implicitly typed. This means that it is strongly typed, but the compiler determines the type.

提交回复
热议问题