Using Smart Objects, Lecture Notes - Computer Science, Study notes of Introduction to Computers

Smart Objects, Advantages, Diadvantages, Usage, JAVA Code

Typology: Study notes

2010/2011

Uploaded on 10/07/2011

rolla45
rolla45 🇺🇸

4

(6)

133 documents

1 / 8

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1 of 8
pf3
pf4
pf5
pf8

Partial preview of the text

Download Using Smart Objects, Lecture Notes - Computer Science and more Study notes Introduction to Computers in PDF only on Docsity!

Lesson: Using "Smart" Objects Objects let us bundle multiple data values together: IPod ps p = new IPod(i; p-numsongs = 100; p-volume = 7; p.-totalMemory = 2000; p.freeMemory = 1000; p.numiwires = 1000; We can access those values: p-numsongs And we can reach in and change those values: p-volume = 9; lofs