26.07.2013 Views

Java How to Program Fourth Edition - DCC

Java How to Program Fourth Edition - DCC

Java How to Program Fourth Edition - DCC

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Objectives<br />

8<br />

Object-Based<br />

<strong>Program</strong>ming<br />

• To understand encapsulation and data hiding.<br />

• To understand the notions of data abstraction and<br />

abstract data types (ADTs).<br />

• To create <strong>Java</strong> ADTs, namely, classes.<br />

• To be able <strong>to</strong> create, use and destroy objects.<br />

• To be able <strong>to</strong> control access <strong>to</strong> object instance<br />

variables and methods.<br />

• To appreciate the value of object orientation.<br />

• To understand the use of the this reference.<br />

• To understand class variables and class methods.<br />

My object all sublime<br />

I shall achieve in time.<br />

W. S. Gilbert<br />

Is it a world <strong>to</strong> hide virtues in?<br />

William Shakespeare, Twelfth Night<br />

Your public servants serve you right.<br />

Adlai Stevenson<br />

But what, <strong>to</strong> serve our private ends,<br />

Forbids the cheating of our friends?<br />

Charles Churchill<br />

This above all: <strong>to</strong> thine own self be true.<br />

William Shakespeare, Hamlet<br />

Have no friends not equal <strong>to</strong> yourself.<br />

Confucius<br />

© Copyright 1992–2002 by Deitel & Associates, Inc. All Rights Reserved. 7/3/01

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!