An interface is a programming structure that allows the computer to enforce certain properties on an object. In object oriented programming, an interface generally defines the set of methods that an instance of a class that has that interface could respond to. It is actually a concept of abstraction and encapsulation.
Say we have a car class, a motorcycle class and a bus class. Each of these three classes should have a start engine action. How the engine is started for each vehicle is left to each particular class implementation but the fact is that they all share the action of start engine. In other words, declaring the action in the interface forces all the classes that has the interface to implement that action.
Let's see some practical examples with Laravel. Therefore, PHP is used as programming language.
You'll find instructions and full documentation on HiBit.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
HiBit is a platform made by and for enthusiasts of the IT world. On our website you can read and comment on technical articles, tutorials, news ... and everything that may interest you in the computing world.
The MIT License (MIT). Please see License File for more information.