PHP·98 questions

What are interfaces?

Answer
interface Name { public function method(); }.
Contract without implementation.
class X implements Interface.
Multiple implementations allowed.
All methods are public.
Was this answer helpful?

More questions in this topic

Related questions from other topics