Can I overload an operator in Objective-C?

后端 未结 7 559
萌比男神i
萌比男神i 2020-12-15 15:02

Is it possible to override operator use in Objective-C?

For example

myClassInstance + myClassInstance

calls a custom function to ad

相关标签:
7条回答
  • 2020-12-15 15:50

    No, you can't do this in Objective-C.

    0 讨论(0)
提交回复
热议问题