in reply to Re: difference b/w API and a class
in thread difference b/w API and a class
Classes are good for implementation of stateless API.
Objects are good for implementation of API with some states. For instance, the instance of API can keep database connection or authentication credentials according to specified rules.
|
|---|