There's no relation between the two.
A library's or OS's API refers to the interface used to communicate with that library or OS. An API may rely on the use of objects and classes. Or not.
A class is a data structure whose instances are called objects. Objects encapsulate data in the form of attributes. Methods defined in the class are used to operate on the attributes.
In reply to Re: difference b/w API and a class
by ikegami
in thread difference b/w API and a class
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |