您的位置:寻梦网首页编程乐园Java天地Core JavaJava Lecture Notes

Introduction

Content

Apply

Reflect

Extend

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)


Content Index

Content Page # 31

Messages

The objects making up a system communicate by sending messages to each other. For example, a system might send a closeAccount() message to a SavingsAccount object of a bank computer system for a particular client’s bank account.

An object receiving a valid message will respond by performing some operation(s): i.e. the object will exhibit some behaviour. For example, after receiving the closeAccount() message a SavingsAccount object might send a message to request a cheque be sent to the client for the balance, set its balance to zero and then disable any more transactions to be processed for the account.

basicline.gif (169 bytes)

RITSEC - Global Campus
Copyright ?1999 RITSEC- Middlesex University. All rights reserved.
webmaster@globalcampus.com.eg