So what are interfaces and implementations.
Interfaces are the contracts or rules that specify on certain set of features. Like, DB connection name, parameters, return types , error types
Implementation are the actual concrete form of the Interfaces which fulfills what interface expects.
This helps in maintaining uniformity across developers, without which every one of us will end up writing our own way of acquiring database connection.
Here is a quick 2 minutes practical insight on the topic.
Comments
Post a Comment