Using Interface variables

后端 未结 12 1141
广开言路
广开言路 2020-11-28 05:01

I\'m still trying to get a better understanding of Interfaces. I know about what they are and how to implement them in classes.

What I don\'t understand is when you

12条回答
  •  半阙折子戏
    2020-11-28 05:45

    Using interface variables is the ONLY way to allow handler methods to be written which can accept data from objects that have different base classes.

    This is about as clear as anyone is going to get.

提交回复
热议问题