To actually use an interface, you need a pointer to it.
为了实际使用一个接口,你需要一个指向它的指针。
The mental model that people have about a particular task may make it easy or hard to use an interface that you have designed.
人们所拥有的关于特定任务的心智模型,可能会使你设计的界面对于他们好用或是不好用。
As the operations offered by the classes are the same, you can use an interface to define a contract that all of your classes implement.
由于这些类提供的操作相同,您可以使用一个接口来定义一个所有类实现的协定。
应用推荐