Why do we need interfaces?
In many real time business scenarios there is a need to transfer data from one system to another system. In such cases we need to develop programs, these programs are nothing by interfaces.
Interfaces are of two types:
1. Inbound interface
2. Outbound interface
As the name suggests, inbound interface gets data from another system and imports them into our system. Similarly, an outbound interface extracts data from our system and sends them to another system.