what is interface in php? how it is use?
Answer Posted / raju
Interface gets useful when you need to extend a class from
more than one parent class since class can not do this.
Why would you want to implement just a single interface on a
class. After all, a class already has everything that an
interface has.
Is This Answer Correct ? | 14 Yes | 8 No |
Post New Answer View All Answers
How to add 301 redirects in PHP?
What is $_ get and $_ post in php?
Tell me how to find the position of the first occurrence of a substring in a string?
Can we override static method?
Can we learn php without html?
What are the difference between abstract class and interface in oops?
What are the different types of PHP arrays?
How to make horizonatl menu and vertical menu responsive
How many escape sequences are recognized in double-quoted strings in php?
What are the benefits of composer?
What is singleton design pattern in php?
What is scope of variable in php?
Code to open file download dialog in PHP?
What are the methods to submit form in php?
Is not null in php?