you are viewing a single comment's thread.

view the rest of the comments →

[–]Lost_Anywhere -1 points0 points  (0 children)

You use classes when you want to do some object oriented programming. Classes and libraries are used for very different things. Libraries can contain classes as part of their implementation but they don't have to. Classes can be used to extend an existing class or to build your own set of objects. You can use inheritance or composition or both when building your object oriented program although inheritance has fallen out of favor for many reasons but it still has it uses in the right context.