Examveda
Examveda

Which class accepts a class name or an object reference and returns an array of interface name?

A. class_implements()

B. is_subclass()

C. is_subclass_of()

D. class_interface()

Answer: Option A

Solution(By Examveda Team)

is_subclass_of() will tell you only about class inheritance relationships. It will not tell you that a class implements an interface.

This Question Belongs to PHP >> Object Oriented Concept

Join The Discussion

Related Questions on Object Oriented Concept