Introduction to Thinking in Java objects (1)

Source: Internet
Author: User

Alan Kay summarizes the five basic features of Smalltalk (one of the languages on which Java is based):

① All things are objects

Consider an object as a fancy variable that can store data and perform operations on itself.

② programs are collections of objects that tell each other what they want to do by sending messages.

You can resemble a message as a call request to a method on a particular object.

③ each object has its own storage that is composed of other objects.

In other words, you can create a new type of object by creating a package that contains an existing object.

④ Each object has its type.

Each object is an instance of a class (instance).

⑤ all objects of a particular type can receive the same message.

Booch a more concise description of the object: The object is a friend state (internal data), a behavior (method), and an identity (a unique address in memory).

Introduction to Thinking in Java objects (1)

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.