What is Interface? Why it is used?

devquora
devquora

Posted On: Feb 22, 2018

 

An interface can be defined as a platform that permits users to develop programs that mention all public methods that need to be implemented by various classes. It does not involve any complexity or detail of methods used and implemented. An interface can also be defined as the next level of abstraction.

The main use of the interface is to maximize the potential of the reusability of code.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Appinventiv Php Developer Interview Questions

    How to find datatype of variable in PHP?

    You can find the datatype of a variable in PHP by using the Var_dump() and gettype() functions....

    Appinventiv Php Developer Interview Questions

    What is CSRF token and how will you add CSRF token in ajax?

    A CSRF token is known as a unique, secret, unpredictable value that is generated by the server-side application. It is transmitted to the client in a way that is included in a subsequent HTTP request ...