The difference between a frame and a library

Source: Internet
Author: User

What we usually call C standard library, C + + standard library, STL Library, boost library, etc.

At the same time we often hear about the QT framework, which is the framework in Java, the framework,

What is the difference between them?

1. Libraries are already encapsulated functions, or classes, but these classes or functions can only define objects and are instantiated directly to

2. The framework is also a packaged function, or class, but you can customize the inheritance from these classes, derive the classes you need, and then add some of the functionality you need to augment it.

The difference, the library can only be used, the framework may inherit from it, expand the custom function. (Of course, the framework can be used only, no one rules you have to inherit it, expand it to use, but in most cases, nobody is doing it ...) )

The difference between a frame and a library

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.