Chapter sixth-About objects

Source: Internet
Author: User

Object-oriented is a software development method that organizes problems and solutions together as a collection of independent objects, and data structures and operations are included in the real model. We can identify an object-oriented type by seven features: equivalence, abstraction, classification, encapsulation, inheritance, polymorphism and persistence. Some of the real types apply only a portion of these seven articles; although they are called object-oriented, almost all object-oriented entities are called Object-based.
The object-oriented system uses the concept of encapsulation. A class encapsulates the properties and operations of an object, hiding specific details. However, encapsulation is not equal to information hiding, as Berard says. The encapsulated protection boundary is actually transparent or translucent. In other words, sometimes you can see it within the boundaries of protection, but it is hidden. Berard notes that "abstraction is a technique that helps us to identify what information should be visible and which information should be hidden." So encapsulation is a technique for wrapping information in a way that hides the hidden information, and the visible information is visible.

Chapter sixth-About objects

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.