What does “implements” do on a class?

前端 未结 7 751
抹茶落季
抹茶落季 2020-12-22 18:51

If a class implements another class... what does that mean? I found this code sample: http://www.java2s.com/Code/Php/Class/extendsandimplement.htm

But unfortunately

相关标签:
7条回答
  • 2020-12-22 19:18

    An interface defines a simple contract of methods all implementing classes must implement. When a class implements an interface, it must provide implementations for all its methods.

    I guess the poster assumes a certain level of knowledge about the language.

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