Rifatul Islam
Mar 31, 2023

In PHP, when a class implements an interface, it is required to implement all the methods defined in that interface. Failure to implement any of the methods in the interface will result in a fatal error when the code is executed. But in your ISP example PaymentInterface you have two method but you implement only one what will produce fatal error.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Rifatul Islam
Rifatul Islam

No responses yet

Write a response