UML Study Notes (2): review some basic object-oriented concepts

Source: Internet
Author: User

 

 

Object-oriented thinking is a library that relies on several basic principles.

The object is a class instance.

Class is an object set with the same attributes and operations.

Inheritance is an important aspect of object orientation. The object inherits the attributes and operations of the class. Classes can also inherit the attributes and operations of other classes.

Polymorphism is another important aspect. It means that operations with the same name can be performed in different classes in different ways.

An object hides the execution process of its operations on other objects and the external world. Each object must provide an interface for other objects to perform operations on this object.

Objects work collaboratively through mutual message transmission. A message is a request to perform an operation.

Objects are usually associated with other objects. Association can take multiple forms. Objects of a class may be associated with objects of multiple other classes at the same time.

Clustering is an association. Clustering objects are composed of some objects. Composition is a special aggregation. In a composite object, some objects can only exist as part of the composite object and the composite object.

 

Source: http://www.cnblogs.com/Bear-Study-Hard/archive/2006/06/02/415828.html

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.