What does “implements” do on a class?

前端 未结 7 840
抹茶落季
抹茶落季 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:08

    In Java a class can implement an interface. See http://en.wikipedia.org/wiki/Interface_(Java) for more details. Not sure about PHP.

    Hope this helps.

提交回复
热议问题