Vidyalelo
PHP · Q31

Object Oriented Concept

Programming · PHP · question 31

Q31

Which one of the following keyword is used to implement an interface?

A.
interface
B.
get
C.
inherit
D.
implements
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
A class can implement an interface using the implements keyword in its declaration.