Why doesn't Java have method delegates?

后端 未结 9 1522
再見小時候
再見小時候 2021-02-05 17:42

The Java gurunaths (natha नाथ = sanskrit for deity-master-protector) at Sun should condescend to accept the necessity of delegates and draft it into Java spec.

In C#, I

9条回答
  •  南笙
    南笙 (楼主)
    2021-02-05 18:29

    For whatever it's worth, I have implemented callback/delegate support in Java using reflection. Details and working source are available on my website.

提交回复
热议问题