what is interface in php? how it is use?

Answer Posted / karthi

interface =multiple inheritance

means:
An multiple inheritance is not supported in php that time we
using interface. It is implements two baseclasses but class
extends only one class.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How we load all classes that placed in different directory in one php file , means how to do auto load classes.

740


What is the name of scripting engine in php?

944


What is htaccess in php?

832


Explain me what is sql injection?

742


What are the three classes of errors that can occur in php?

806


What is encapsulation in php?

742


Explain what are some new features introduced in php7?

709


What are escaping characters? Explain with an example?

733


Explain mixed and callback functions?

816


What is php and why we use it?

700


What is the meaning of a final class and a final method?

791


Is time a dependent variable?

728


What types of loops exist in php?

770


which will print out the php call stack?

764


How to get elements in reverse order of an array in php?

772