One of the highlights of Java programming ideas

Source: Internet
Author: User

 

 

Everything is an object. A thing includes its own descriptive attributes and Action attributes. A descriptive attribute is what it owns and an action attribute is what it can do. In Java, these descriptive attributes and Action attributes are used as the overall object description.

A program is the communication between objects. An Object-Oriented Program is a hodgedge of various object objects. It organizes them organically so that objects can interact with each other through actions. In a computer, such a relationship is a message, the simplest is 0/1 yards.

Objects can contain objects. An object consists of its own description attributes and Action attributes, and the description attributes can be other objects. Therefore, an object can also have multiple other objects. For example, an automobile can include an engine, a tire, or a steering wheel. Therefore, objects and objects can also be contained.

Objects are type instances. This is abstract. It abstracts transactions with common features into a type. The type here is like generating a mold for every car, and every real car is a specific existence of this mold. In OOP design, you must be able to abstract objects into types. Only when types are discovered can Java classes be designed.

Objects are inherited. All object instances of the same type have all the descriptive attributes and Action attributes of this type. Therefore, they are like "Dragon, Phoenix, and Baby rats will beat holes ", naturally, all types of functions are inherited.

Booch was one of the earliest advocates of object-oriented methods. He proposed the concept of object-oriented software engineering. In 1991, he expanded his previous Ada-oriented work to the entire object-oriented design field. Booch, Rumbaugh, and Jacob bson finally released the Object-Oriented Modeling Language (UML ).

An object includes status, behavior, and identifier.

Status: The property described above, such as the engine, tires, and steering wheel.

Behavior: The Action attributes mentioned above, such as start, drive, and stop.

ID: Unique tag attached to an object instance based on the type, such as the vehicle number.

The preceding three aspects correspond to the attribute, method, and identifier of the Java class respectively.

 

 

 

This article is excerpted from the book Java programming ideology (4th edition) (Commentary edition.

The book Java programming ideology (4th edition) (Commentary edition) has been officially published by the Electronics Industry Press, and this book is commented by Liu zhongbing

Purchase address:

Dangdang:

Http://product.dangdang.com/product.aspx? Product_id = 21106091 & ref = search-1-Pub

Excellence:

Http://www.amazon.cn/Java%E7%BC%96%E7%A8%8B%E6%80%9D%E6%83%B3-%E5%88%98%E4%B8%AD%E5%85%B5/dp/B0055T5XVW/ref=sr_1_1? Ie = utf8 & qid = 1308711461 & sr = 8-1

China Interactive publishing network:

Http://product.china-pub.com/194002

 

 

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.