what is interface in php? how it is use?
Answer Posted / sivannarayana
interface = multiple inheritance
means:
An interface is a named collection of method definitions, without implementation.
example:
interface interfaceName{
public function func1();
public function func2();
}
//we will use this interface as
class ClassName implements interfaceName
{
//note all interface func's must implement here
}
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Write a program to show the joining of two strings in php?
where do we use htaccess?
How to call javascript function in php on button click?
How can you retrieve a cookie value?
How can I use single quotes in single quotes in php?
Explain me what is the use of header() function in php?
What is php limit?
What is overloading and overriding in php?
What are php data types?
How do I install php?
How can you execute php script from the command line?
How to display your correct URL of the current web page?
Do while loops?
Is empty function c++?
What is the interface in php?