Quiz: Polymorphism & Type Hinting

A short quiz to test your understanding of the polymorphism principle and type hinting.

Let’s practice what we have just learned.

1

Which sentence best defines the polymorphism principle in PHP?

A)

Methods that serve the same functionality in different classes should have the same name.

B)

The same function can have many names.

C)

Polymorphism is the Greek term for inheritance.

D)

Polymorphism can be implemented in most modern programming languages.

Question 1 of 60 attempted

Get hands-on with 1200+ tech skills courses.