home *** CD-ROM | disk | FTP | other *** search
Unknown | 1993-06-20 | 18.3 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Wanton Packer Module (music/wantonPacker)
| ext
| Supported |
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 01 | 04 00 47 b5 04 00 42 f6 |........|..G...B.|
|00000010| 04 00 15 30 04 00 2f 4f | 04 00 15 32 00 04 a6 54 |...0../O|...2...T|
|00000020| 00 04 a6 50 00 04 a6 4c | 00 04 a6 5c 00 04 a6 58 |...P...L|...\...X|
|00000030| 00 00 00 00 00 00 00 00 | 00 04 00 00 00 00 00 00 |........|........|
|00000040| 09 00 00 00 00 ff 00 ff | 00 00 00 00 03 00 00 00 |........|........|
|00000050| 00 00 02 5e 03 18 00 00 | 00 00 00 40 05 6b 00 99 |...^....|...@.k..|
|00000060| 06 d0 02 8c 00 40 00 00 | 00 00 ff 00 00 00 00 00 |.....@..|........|
|00000070| 00 00 00 00 00 00 01 01 | 03 18 00 00 00 48 00 48 |........|.....H.H|
|00000080| 00 00 00 18 02 64 03 18 | 00 00 00 00 02 64 03 18 |.....d..|.....d..|
|00000090| 00 64 00 04 00 00 04 00 | 44 fc 02 5e 4a b6 01 91 |.d......|D..^J...|
|000000a0| 00 1b 04 00 44 fc 02 5e | 4a b6 01 91 00 1b 00 9f |....D..^|J.......|
|000000b0| 00 00 04 2e 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 49 49 00 00 49 49 00 00 | 49 49 00 00 99 96 00 00 |II..II..|II......|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 04 00 47 b5 | 04 00 42 f6 04 00 15 30 |......G.|..B....0|
|00000110| 04 00 2f 4f 04 00 15 32 | 00 04 a6 54 00 04 a6 50 |../O...2|...T...P|
|00000120| 00 04 a6 4c 00 04 a6 5c | 00 04 a6 58 00 00 00 00 |...L...\|...X....|
|00000130| 00 00 00 00 00 04 00 00 | 00 00 00 00 09 00 00 00 |........|........|
|00000140| 00 ff 00 ff ff 00 00 00 | 03 00 49 50 00 00 4b ae |........|..IP..K.|
|00000150| 03 18 00 00 00 00 00 40 | 05 6b 00 99 06 d0 02 8c |.......@|.k......|
|00000160| 00 40 00 00 00 00 ff 00 | 00 00 00 00 00 00 00 00 |.@......|........|
|00000170| 00 00 01 01 03 18 00 00 | 00 48 00 48 00 00 00 18 |........|.H.H....|
|00000180| 02 64 03 18 00 00 00 00 | 02 64 03 18 00 64 00 04 |.d......|.d...d..|
|00000190| 00 00 04 00 44 fc 02 5e | 4a b6 01 91 00 1b 04 00 |....D..^|J.......|
|000001a0| 44 fc 02 5e 4a b6 01 91 | 00 1b 00 93 00 00 04 2e |D..^J...|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 49 49 00 00 |........|....II..|
|000001c0| 49 49 00 00 49 49 00 00 | 99 96 00 00 00 00 00 00 |II..II..|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 04 0d 0d 0d 0d 00 04 | 0d 0d 0d 0d 00 35 fc 00 |........|.....5..|
|00000210| 74 02 a4 00 74 02 0e 02 | 30 08 00 f7 ff 00 14 08 |t...t...|0.......|
|00000220| 00 f7 0d fb 00 00 00 01 | 01 48 01 a8 57 4e 47 72 |........|.H..WNGr|
|00000230| 61 70 68 69 63 2e 36 31 | 38 32 38 39 2e 65 70 73 |aphic.61|8289.eps|
|00000240| f7 0d 0d 00 70 fc 00 8d | 02 a4 00 8d 00 0e 02 30 |....p...|.......0|
|00000250| 08 00 f7 ff 00 15 18 00 | f7 4e 6f 74 65 3a 20 20 |........|.Note: |
|00000260| 74 68 65 72 65 20 69 73 | 20 6e 6f 20 ff 00 15 18 |there is| no ....|
|00000270| 01 f7 73 65 74 43 6f 6c | 6f 72 3a ff 00 15 18 00 |..setCol|or:.....|
|00000280| f7 20 6d 65 74 68 6f 64 | 20 68 65 72 65 2c 20 73 |. method| here, s|
|00000290| 6f 20 74 68 65 20 63 6f | 6c 6f 72 20 63 61 6e 6e |o the co|lor cann|
|000002a0| 6f 74 20 62 65 20 63 68 | 61 6e 67 65 64 21 ff 00 |ot be ch|anged!..|
|000002b0| 16 1c 01 f7 0d 00 f1 fc | 00 5f 02 a4 00 5f 00 0e |........|._..._..|
|000002c0| 02 30 08 00 f7 ff 00 15 | 24 03 f7 41 63 74 69 6f |.0......|$..Actio|
|000002d0| 6e 2d 43 65 6e 74 65 72 | 65 64 20 43 6f 6e 74 72 |n-Center|ed Contr|
|000002e0| 6f 6c ff 00 15 24 01 f7 | 0d fc 00 74 02 a4 00 74 |ol...$..|...t...t|
|000002f0| 02 0e 02 30 08 00 f7 0d | fc 00 74 02 ba 00 5d 00 |...0....|..t...].|
|00000300| 0e 02 30 08 00 f7 ff 00 | 15 18 00 f7 41 20 73 79 |..0.....|....A sy|
|00000310| 73 74 65 6d 20 65 78 68 | 69 62 69 74 73 20 ff 00 |stem exh|ibits ..|
|00000320| 15 18 03 f7 61 63 74 69 | 6f 6e 2d 63 65 6e 74 65 |....acti|on-cente|
|00000330| 72 65 64 ff 00 15 18 00 | f7 20 63 6f 6e 74 72 6f |red.....|. contro|
|00000340| 6c 20 77 68 65 6e 20 74 | 68 65 20 73 79 73 74 65 |l when t|he syste|
|00000350| 6d 27 73 20 70 72 6f 63 | 65 64 75 72 65 73 20 6b |m's proc|edures k|
|00000360| 6e 6f 77 20 77 68 61 74 | 20 73 75 62 70 72 6f 63 |now what| subproc|
|00000370| 65 64 75 72 65 73 20 74 | 6f 20 75 73 65 20 74 6f |edures t|o use to|
|00000380| 20 70 65 72 66 6f 72 6d | 20 61 63 74 69 6f 6e 73 | perform| actions|
|00000390| 2e ff 00 14 18 00 f7 0d | fc 00 74 02 a4 00 74 00 |........|..t...t.|
|000003a0| 0e 02 30 08 00 f7 0d 0d | 00 de fc 00 46 02 d2 00 |..0.....|....F...|
|000003b0| 46 02 0e 02 30 08 00 f7 | ff 00 15 18 01 f7 41 63 |F...0...|......Ac|
|000003c0| 74 69 6f 6e 2d 43 65 6e | 74 65 72 65 64 20 43 6f |tion-Cen|tered Co|
|000003d0| 6e 74 72 6f 6c 20 6f 66 | 20 50 72 6f 63 65 64 75 |ntrol of| Procedu|
|000003e0| 72 65 73 0d 0d ff 00 14 | 24 01 f7 fb 00 00 00 01 |res.....|$.......|
|000003f0| 01 1e 01 f0 02 57 4e 47 | 72 61 70 68 69 63 2e 32 |.....WNG|raphic.2|
|00000400| 32 34 39 35 36 2e 65 70 | 73 f7 0d fc 00 46 02 d2 |24956.ep|s....F..|
|00000410| 00 46 00 0e 02 30 08 00 | f7 ff 00 15 18 00 f7 0d |.F...0..|........|
|00000420| 54 68 69 73 20 61 70 70 | 72 6f 61 63 68 20 72 65 |This app|roach re|
|00000430| 70 72 65 73 65 6e 74 73 | 20 73 69 6d 70 6c 79 20 |presents| simply |
|00000440| 63 61 6c 6c 69 6e 67 20 | 74 68 65 20 72 69 67 68 |calling |the righ|
|00000450| 74 20 72 6f 75 74 69 6e | 65 20 66 6f 72 20 74 68 |t routin|e for th|
|00000460| 65 20 6a 6f 62 20 74 6f | 20 62 65 20 64 6f 6e 65 |e job to| be done|
|00000470| 2e 20 20 54 68 69 73 20 | 69 73 20 74 68 65 20 6f |. This |is the o|
|00000480| 6c 64 20 77 61 79 2e 0d | 00 c3 ff 00 14 18 00 f7 |ld way..|........|
|00000490| 0d fc 00 74 02 a4 00 74 | 00 0e 02 30 08 00 f7 ff |...t...t|...0....|
|000004a0| 00 15 24 03 f7 4f 62 6a | 65 63 74 2d 43 65 6e 74 |..$..Obj|ect-Cent|
|000004b0| 65 72 65 64 20 43 6f 6e | 74 72 6f 6c ff 00 15 24 |ered Con|trol...$|
|000004c0| 01 f7 0d ff 00 15 18 00 | f7 fc 00 74 02 a4 00 74 |........|...t...t|
|000004d0| 02 0e 02 30 08 00 f7 0d | fc 00 74 02 a4 00 74 00 |...0....|..t...t.|
|000004e0| 0e 02 30 08 00 f7 0d 48 | 65 72 65 20 74 68 65 20 |..0....H|ere the |
|000004f0| 73 79 73 74 65 6d 27 73 | 20 ff 00 15 18 03 f7 63 |system's| ......c|
|00000500| 6c 61 73 73 20 64 65 73 | 63 72 69 70 74 69 6f 6e |lass des|cription|
|00000510| 73 ff 00 15 18 00 f7 20 | 73 70 65 63 69 66 79 20 |s...... |specify |
|00000520| 68 6f 77 20 74 6f 20 64 | 65 61 6c 20 77 69 74 68 |how to d|eal with|
|00000530| 20 6f 62 6a 65 63 74 73 | 20 69 6e 20 74 68 65 69 | objects| in thei|
|00000540| 72 20 6f 77 6e 20 63 6c | 61 73 73 2e 0d 01 4d ff |r own cl|ass...M.|
|00000550| 00 15 24 03 f7 fc 00 5e | 02 bc 00 5e 00 0e 02 30 |..$....^|...^...0|
|00000560| 08 00 f7 42 65 6e 65 66 | 69 74 73 20 6f 66 20 4f |...Benef|its of O|
|00000570| 62 6a 65 63 74 20 43 6c | 61 73 73 65 73 ff 00 15 |bject Cl|asses...|
|00000580| 24 01 f7 20 ff 00 15 30 | 01 f7 0d ff 00 15 18 00 |$.. ...0|........|
|00000590| f7 fc 00 74 02 a4 00 74 | 00 0e 02 30 08 00 f7 0d |...t...t|...0....|
|000005a0| 0d fc 00 a3 02 a4 00 74 | 00 0e 02 30 08 00 f7 2d |.......t|...0...-|
|000005b0| 20 49 6e 73 75 6c 61 74 | 69 6f 6e 20 61 6e 64 20 | Insulat|ion and |
|000005c0| 70 72 6f 74 65 63 74 69 | 6f 6e 20 6f 66 20 64 61 |protecti|on of da|
|000005d0| 74 61 0d fc 00 74 02 a4 | 00 74 00 0e 03 48 08 00 |ta...t..|.t...H..|
|000005e0| f7 09 2d 2d 2d 3e 20 20 | 45 6e 68 61 6e 63 65 64 |..---> |Enhanced|
|000005f0| 20 72 65 6c 69 61 62 69 | 6c 69 74 79 0d fc 00 74 | reliabi|lity...t|
|00000600| 02 a4 00 74 00 0e 02 30 | 08 00 f7 0d 2d 20 54 72 |...t...0|....- Tr|
|00000610| 61 6e 73 70 61 72 65 6e | 74 20 63 68 61 6e 67 65 |ansparen|t change|
|00000620| 73 0d 0d fc 00 a3 02 a4 | 00 74 00 0e 02 30 08 00 |s.......|.t...0..|
|00000630| f7 2d 20 41 6e 74 68 72 | 6f 70 6f 6d 6f 72 70 68 |.- Anthr|opomorph|
|00000640| 69 63 20 62 65 68 61 76 | 69 6f 72 3a 20 20 61 6e |ic behav|ior: an|
|00000650| 20 6f 62 6a 65 63 74 20 | 22 6b 6e 6f 77 73 20 68 | object |"knows h|
|00000660| 6f 77 22 20 74 6f 20 64 | 6f 20 74 68 69 6e 67 73 |ow" to d|o things|
|00000670| 20 77 68 65 6e 20 22 74 | 6f 6c 64 22 20 74 6f 20 | when "t|old" to |
|00000680| 64 6f 20 73 6f 2e 0d fc | 00 74 02 a4 00 74 00 0e |do so...|.t...t..|
|00000690| 02 30 08 00 f7 ff 00 14 | 24 00 f7 0d 00 21 0d 0d |.0......|$....!..|
|000006a0| fb 00 00 00 01 01 1a 01 | eb 57 4e 47 72 61 70 68 |........|.WNGraph|
|000006b0| 69 63 2e 36 33 39 32 36 | 33 2e 65 70 73 f7 0d 01 |ic.63926|3.eps...|
|000006c0| 29 fc 00 8c 02 bc 00 5c | 00 0e 02 30 08 00 f7 0d |)......\|...0....|
|000006d0| 0d ff 00 15 18 01 f7 49 | 6e 68 65 72 69 74 61 6e |.......I|nheritan|
|000006e0| 63 65 20 67 6f 65 73 20 | 66 75 72 74 68 65 72 3a |ce goes |further:|
|000006f0| ff 00 15 18 00 f7 0d 0d | fc 00 8c 02 bc 00 6c 00 |........|......l.|
|00000700| 0e 02 30 08 00 f7 41 20 | 63 6c 61 73 73 20 69 73 |..0...A |class is|
|00000710| 20 ff 00 15 18 03 f7 61 | 6c 73 6f ff 00 15 18 00 | ......a|lso.....|
|00000720| f7 20 64 65 66 69 6e 65 | 64 20 61 73 20 61 20 ff |. define|d as a .|
|00000730| 00 15 18 03 f7 73 75 62 | 63 6c 61 73 73 ff 00 15 |.....sub|class...|
|00000740| 18 00 f7 20 6f 66 20 73 | 6f 6d 65 20 6f 74 68 65 |... of s|ome othe|
|00000750| 72 20 63 6c 61 73 73 2c | 20 63 61 6c 6c 65 64 20 |r class,| called |
|00000760| 69 74 73 20 ff 00 15 18 | 03 f7 73 75 70 65 72 63 |its ....|..superc|
|00000770| 6c 61 73 73 ff 00 15 18 | 00 f7 2e 0d 0d 41 20 73 |lass....|.....A s|
|00000780| 75 62 63 6c 61 73 73 20 | 61 6c 73 6f 20 ff 00 15 |ubclass |also ...|
|00000790| 18 03 f7 69 6e 68 65 72 | 69 74 73 ff 00 15 18 00 |...inher|its.....|
|000007a0| f7 20 74 68 65 20 69 6e | 73 74 61 6e 63 65 20 76 |. the in|stance v|
|000007b0| 61 72 69 61 62 6c 65 73 | 20 61 6e 64 20 6d 65 74 |ariables| and met|
|000007c0| 68 6f 64 73 20 64 65 66 | 69 6e 65 64 20 66 6f 72 |hods def|ined for|
|000007d0| 20 61 6c 6c 20 6f 66 20 | 69 74 73 20 73 75 70 65 | all of |its supe|
|000007e0| 72 63 6c 61 73 73 65 73 | 2e 0d 00 2d fc 00 8c 02 |rclasses|...-....|
|000007f0| bc 00 6c 02 0e 02 30 08 | 00 f7 fb 00 00 00 01 01 |..l...0.|........|
|00000800| 51 02 30 57 4e 47 72 61 | 70 68 69 63 2e 35 33 36 |Q.0WNGra|phic.536|
|00000810| 38 37 30 2e 65 70 73 f7 | 0d 00 43 fc 00 74 02 a4 |870.eps.|..C..t..|
|00000820| 00 74 02 0e 02 30 08 00 | f7 ff 00 14 30 01 f7 fb |.t...0..|....0...|
|00000830| 00 00 00 01 01 20 01 dc | 57 4e 47 72 61 70 68 69 |..... ..|WNGraphi|
|00000840| 63 39 32 36 30 36 35 2e | 65 70 73 00 f7 0d ff 00 |c926065.|eps.....|
|00000850| 15 18 01 f7 49 6e 73 74 | 61 6e 63 65 73 0d 00 81 |....Inst|ances...|
|00000860| 0d 45 78 61 6d 70 6c 65 | 3a 20 20 41 6e 20 ff 00 |.Example|: An ..|
|00000870| 15 18 03 f7 41 70 70 6c | 65 ff 00 15 18 02 f7 20 |....Appl|e...... |
|00000880| 63 6c 61 73 73 20 6f 62 | 6a 65 63 74 20 70 72 6f |class ob|ject pro|
|00000890| 64 75 63 65 73 20 74 77 | 6f 20 69 6e 73 74 61 6e |duces tw|o instan|
|000008a0| 63 65 73 20 6f 66 20 69 | 74 73 20 63 6c 61 73 73 |ces of i|ts class|
|000008b0| 2c 20 ff 00 15 18 03 f7 | 6d 79 41 70 70 6c 65 ff |, ......|myApple.|
|000008c0| 00 15 18 02 f7 20 61 6e | 64 20 ff 00 15 18 03 f7 |..... an|d ......|
|000008d0| 79 6f 75 72 41 70 70 6c | 65 ff 00 15 18 02 f7 2e |yourAppl|e.......|
|000008e0| 0d 01 66 ff 00 15 24 03 | f7 fc 00 5d 02 d2 00 5d |..f...$.|...]...]|
|000008f0| 00 0e 02 30 08 00 f7 45 | 78 61 6d 70 6c 65 73 20 |...0...E|xamples |
|00000900| 6f 66 20 50 6f 6c 79 6d | 6f 72 70 68 69 73 6d ff |of Polym|orphism.|
|00000910| 00 15 18 00 f7 0d 0d ff | 00 15 18 03 f7 45 78 61 |........|.....Exa|
|00000920| 6d 70 6c 65 3a ff 00 15 | 18 00 f7 20 22 64 72 61 |mple:...|... "dra|
|00000930| 77 22 6d 65 73 73 61 67 | 65 0d 0d fc 00 74 02 d2 |w"messag|e....t..|
|00000940| 00 74 00 0e 02 30 08 00 | f7 4d 61 69 6e 20 70 72 |.t...0..|.Main pr|
|00000950| 6f 67 72 61 6d 20 74 65 | 6c 6c 73 20 61 6c 6c 20 |ogram te|lls all |
|00000960| 73 63 72 65 65 6e 20 6f | 62 6a 65 63 74 73 20 74 |screen o|bjects t|
|00000970| 6f 20 22 64 72 61 77 22 | 20 74 68 65 6d 73 65 6c |o "draw"| themsel|
|00000980| 76 65 73 2e 0d 0d 22 4c | 69 6e 65 22 20 6f 62 6a |ves..."L|ine" obj|
|00000990| 65 63 74 20 64 6f 65 73 | 20 6f 6e 65 20 74 68 69 |ect does| one thi|
|000009a0| 6e 67 2e 0d 0d 22 43 69 | 72 63 6c 65 22 20 6f 62 |ng..."Ci|rcle" ob|
|000009b0| 6a 65 63 74 20 64 6f 65 | 73 20 61 6e 6f 74 68 65 |ject doe|s anothe|
|000009c0| 72 2e 0d 0d 41 64 64 69 | 6e 67 20 61 20 6e 65 77 |r...Addi|ng a new|
|000009d0| 20 6f 62 6a 65 63 74 20 | 69 73 20 65 61 73 79 3a | object |is easy:|
|000009e0| 20 79 6f 75 20 70 72 6f | 76 69 64 65 20 74 68 65 | you pro|vide the|
|000009f0| 20 22 64 72 61 77 22 20 | 6d 65 74 68 6f 64 20 77 | "draw" |method w|
|00000a00| 69 74 68 20 74 68 65 20 | 6e 65 77 20 6f 62 6a 65 |ith the |new obje|
|00000a10| 63 74 20 61 6e 64 20 79 | 6f 75 20 64 6f 6e 27 74 |ct and y|ou don't|
|00000a20| 20 63 68 61 6e 67 65 20 | 74 68 65 20 6f 72 69 67 | change |the orig|
|00000a30| 69 6e 61 6c 20 70 72 6f | 67 72 61 6d 20 63 6f 64 |inal pro|gram cod|
|00000a40| 65 21 ff 00 14 18 00 f7 | 0d 00 15 0d 0d 43 6c 61 |e!......|.....Cla|
|00000a50| 73 73 65 73 20 6f 66 20 | 4f 62 6a 65 63 74 73 0d |sses of |Objects.|
|00000a60| 00 0e 0d 0d 49 6e 68 65 | 72 69 74 61 6e 63 65 0d |....Inhe|ritance.|
|00000a70| 00 0c 0d 0d 4d 65 73 73 | 61 67 69 6e 67 0d 00 18 |....Mess|aging...|
|00000a80| 0d 0d 43 6f 6e 74 72 6f | 6c 20 6f 66 20 50 72 6f |..Contro|l of Pro|
|00000a90| 63 65 64 75 72 65 73 0d | 00 12 0d 0d 44 79 6e 61 |cedures.|....Dyna|
|00000aa0| 6d 69 63 20 42 69 6e 64 | 69 6e 67 0d 00 6b fc 00 |mic Bind|ing..k..|
|00000ab0| 74 02 ba 00 5d 02 0e 02 | 30 08 00 f7 ff 00 15 18 |t...]...|0.......|
|00000ac0| 01 f7 4f 62 6a 65 63 74 | ff 00 15 18 01 f7 2d 43 |..Object|......-C|
|00000ad0| 65 6e 74 65 72 65 64 20 | 43 6f 6e 74 72 6f 6c 20 |entered |Control |
|00000ae0| 6f 66 20 50 72 6f 63 65 | 64 75 72 65 73 ff 00 15 |of Proce|dures...|
|00000af0| 0a 01 f7 0d ff 00 14 30 | 01 f7 fb 00 00 00 01 01 |.......0|........|
|00000b00| 81 02 24 57 4e 47 72 61 | 70 68 69 63 2e 33 33 38 |..$WNGra|phic.338|
|00000b10| 32 33 32 2e 65 70 73 f7 | 0d 00 24 0d 0d ff 00 15 |232.eps.|..$.....|
|00000b20| 12 03 f7 4f 62 6a 65 63 | 74 2d 4f 72 69 65 6e 74 |...Objec|t-Orient|
|00000b30| 65 64 20 50 72 6f 67 72 | 61 6d 6d 69 6e 67 0d 01 |ed Progr|amming..|
|00000b40| 65 fc 00 74 02 a4 00 74 | 02 0e 02 30 08 00 f7 ff |e..t...t|...0....|
|00000b50| 00 15 30 01 f7 49 6e 68 | 65 72 69 74 61 6e 63 65 |..0..Inh|eritance|
|00000b60| ff 00 15 18 00 f7 20 28 | 63 6f 6e 74 69 6e 75 65 |...... (|continue|
|00000b70| 64 29 0d fc 00 96 02 bc | 00 65 00 0e 02 30 08 00 |d)......|.e...0..|
|00000b80| f7 0d 0d 41 20 6e 65 77 | 20 73 75 62 63 6c 61 73 |...A new| subclas|
|00000b90| 73 20 6d 61 79 20 ff 00 | 15 18 03 f7 61 64 64 ff |s may ..|....add.|
|00000ba0| 00 15 18 00 f7 20 61 64 | 64 69 74 69 6f 6e 61 6c |..... ad|ditional|
|00000bb0| 20 69 6e 73 74 61 6e 63 | 65 20 76 61 72 69 61 62 | instanc|e variab|
|00000bc0| 6c 65 73 20 61 6e 64 20 | 6d 65 74 68 6f 64 73 2e |les and |methods.|
|00000bd0| 0d 0d 41 20 6e 65 77 20 | 73 75 62 63 6c 61 73 73 |..A new |subclass|
|00000be0| 20 6d 61 79 20 ff 00 15 | 18 03 f7 6f 76 65 72 72 | may ...|...overr|
|00000bf0| 69 64 65 ff 00 15 18 00 | f7 20 28 ff 00 15 18 02 |ide.....|. (.....|
|00000c00| f7 72 65 64 65 66 69 6e | 65 ff 00 15 18 00 f7 29 |.redefin|e......)|
|00000c10| 20 6d 65 74 68 6f 64 73 | 20 64 65 66 69 6e 65 64 | methods| defined|
|00000c20| 20 69 6e 20 61 20 73 75 | 70 65 72 63 6c 61 73 73 | in a su|perclass|
|00000c30| 2e 20 20 54 68 65 20 6f | 76 65 72 72 69 64 69 6e |. The o|verridin|
|00000c40| 67 20 6d 65 74 68 6f 64 | 20 6d 61 79 20 63 6f 6d |g method| may com|
|00000c50| 70 6c 65 74 65 6c 79 20 | 72 65 70 6c 61 63 65 20 |pletely |replace |
|00000c60| 74 68 65 20 73 75 70 65 | 72 63 6c 61 73 73 27 20 |the supe|rclass' |
|00000c70| 6d 65 74 68 6f 64 2c 20 | 6f 72 20 6d 61 79 20 73 |method, |or may s|
|00000c80| 69 6d 70 6c 79 20 61 64 | 64 20 66 75 6e 63 74 69 |imply ad|d functi|
|00000c90| 6f 6e 61 6c 69 74 79 20 | 28 63 6f 64 65 29 20 74 |onality |(code) t|
|00000ca0| 6f 20 69 74 2e 0d 00 66 | ff 00 15 18 03 f7 45 78 |o it...f|......Ex|
|00000cb0| 61 6d 70 6c 65 3a ff 00 | 15 18 00 f7 20 20 53 65 |ample:..|.... Se|
|00000cc0| 6e 64 20 73 61 6d 65 20 | 22 67 72 6f 77 22 20 6d |nd same |"grow" m|
|00000cd0| 65 73 73 61 67 65 20 74 | 6f 20 6f 62 6a 65 63 74 |essage t|o object|
|00000ce0| 73 20 69 6e 20 74 77 6f | 20 64 69 66 66 65 72 65 |s in two| differe|
|00000cf0| 6e 74 20 63 6c 61 73 73 | 65 73 2c 20 41 70 70 6c |nt class|es, Appl|
|00000d00| 65 20 61 6e 64 20 42 61 | 6e 61 6e 61 3a 0d 00 2e |e and Ba|nana:...|
|00000d10| fc 00 74 02 a4 00 74 02 | 0e 02 30 08 00 f7 0d fb |..t...t.|..0.....|
|00000d20| 00 00 00 01 01 53 01 ec | 57 4e 47 72 61 70 68 69 |.....S..|WNGraphi|
|00000d30| 63 2e 35 37 30 34 36 35 | 2e 65 70 73 f7 0d 01 bd |c.570465|.eps....|
|00000d40| 0d fc 00 5e 02 bc 00 5e | 00 0e 02 30 08 00 f7 ff |...^...^|...0....|
|00000d50| 00 15 24 03 f7 43 6c 61 | 73 73 65 73 20 61 6e 64 |..$..Cla|sses and|
|00000d60| 20 49 6e 73 74 61 6e 63 | 65 73 20 ff 00 15 18 02 | Instanc|es .....|
|00000d70| f7 28 63 6f 6e 74 69 6e | 75 65 64 29 ff 00 15 24 |.(contin|ued)...$|
|00000d80| 03 f7 0d fc 00 a2 02 bc | 00 7e 00 0e 02 30 08 00 |........|.~...0..|
|00000d90| f7 ff 00 15 18 00 f7 0d | fc 00 81 02 bc 00 5d 00 |........|......].|
|00000da0| 0e 02 30 08 00 f7 ff 00 | 15 18 03 f7 49 6e 73 74 |..0.....|....Inst|
|00000db0| 61 6e 63 65 20 6f 66 20 | 74 68 65 20 43 6c 61 73 |ance of |the Clas|
|00000dc0| 73 3a ff 00 15 18 00 f7 | 0d 0d fc 00 90 02 bc 00 |s:......|........|
|00000dd0| 6c 00 0e 02 30 08 00 f7 | 41 6e 20 69 6e 64 69 76 |l...0...|An indiv|
|00000de0| 69 64 75 61 6c 20 6f 63 | 63 75 72 72 65 6e 63 65 |idual oc|currence|
|00000df0| 20 6f 66 20 61 6e 20 6f | 62 6a 65 63 74 20 63 72 | of an o|bject cr|
|00000e00| 65 61 74 65 64 20 62 79 | 20 61 20 63 6c 61 73 73 |eated by| a class|
|00000e10| 20 6d 65 74 68 6f 64 20 | 69 6e 20 74 68 65 20 63 | method |in the c|
|00000e20| 6c 61 73 73 20 6f 62 6a | 65 63 74 2e 0d 0d 48 61 |lass obj|ect...Ha|
|00000e30| 73 20 ff 00 15 18 03 f7 | 69 6e 73 74 61 6e 63 65 |s ......|instance|
|00000e40| 20 76 61 72 69 61 62 6c | 65 73 ff 00 15 18 00 f7 | variabl|es......|
|00000e50| 20 61 6e 64 20 ff 00 15 | 18 03 f7 69 6e 73 74 61 | and ...|...insta|
|00000e60| 6e 63 65 20 6d 65 74 68 | 6f 64 73 ff 00 15 18 00 |nce meth|ods.....|
|00000e70| f7 2e 0d 0d 54 68 65 73 | 65 20 61 72 65 20 74 68 |....Thes|e are th|
|00000e80| 65 20 ff 00 15 18 03 f7 | 6f 62 6a 65 63 74 73 ff |e ......|objects.|
|00000e90| 00 15 18 00 f7 20 74 68 | 61 74 20 64 6f 20 77 6f |..... th|at do wo|
|00000ea0| 72 6b 20 69 6e 20 79 6f | 75 72 20 70 72 6f 67 72 |rk in yo|ur progr|
|00000eb0| 61 6d 2e 0d 0d 49 6e 73 | 74 61 6e 63 65 20 6e 61 |am...Ins|tance na|
|00000ec0| 6d 65 73 20 62 65 67 69 | 6e 20 77 69 74 68 20 6c |mes begi|n with l|
|00000ed0| 6f 77 65 72 63 61 73 65 | 20 6c 65 74 74 65 72 73 |owercase| letters|
|00000ee0| 2e 20 ff 00 15 18 02 f7 | 20 28 45 78 61 6d 70 6c |. ......| (Exampl|
|00000ef0| 65 3a 20 20 6d 79 41 70 | 70 6c 65 29 0d 00 01 0d |e: myAp|ple)....|
|00000f00| 01 b3 fc 00 5e 02 bc 00 | 5e 00 0e 02 30 08 00 f7 |....^...|^...0...|
|00000f10| ff 00 15 24 03 f7 43 6c | 61 73 73 65 73 20 61 6e |...$..Cl|asses an|
|00000f20| 64 20 49 6e 73 74 61 6e | 63 65 73 0d ff 00 15 24 |d Instan|ces....$|
|00000f30| 01 f7 0d ff 00 15 18 02 | f7 41 ff 00 15 18 02 f7 |........|.A......|
|00000f40| 63 74 75 61 6c 6c 79 2c | 20 74 68 65 72 65 20 61 |ctually,| there a|
|00000f50| 72 65 20 74 77 6f 20 74 | 79 70 65 73 20 6f 66 20 |re two t|ypes of |
|00000f60| 22 6f 62 6a 65 63 74 73 | 22 3a ff 00 15 18 00 f7 |"objects|":......|
|00000f70| 0d 0d fc 00 81 02 bc 00 | 5d 00 0e 02 30 08 00 f7 |........|]...0...|
|00000f80| ff 00 15 18 03 f7 43 6c | 61 73 73 20 4f 62 6a 65 |......Cl|ass Obje|
|00000f90| 63 74 20 28 6f 72 20 22 | 66 61 63 74 6f 72 79 20 |ct (or "|factory |
|00000fa0| 6f 62 6a 65 63 74 22 29 | 3a ff 00 15 18 00 f7 20 |object")|:...... |
|00000fb0| 0d 0d fc 00 90 02 bc 00 | 6c 00 0e 02 30 08 00 f7 |........|l...0...|
|00000fc0| 43 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 64 65 66 |Contains| the def|
|00000fd0| 69 6e 69 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 63 |inition |of the c|
|00000fe0| 6c 61 73 73 20 69 74 73 | 65 6c 66 2e 0d 0d 48 61 |lass its|elf...Ha|
|00000ff0| 73 20 ff 00 15 18 03 f7 | 63 6c 61 73 73 ff 00 15 |s ......|class...|
|00001000| 18 03 f7 20 6d 65 74 68 | 6f 64 73 ff 00 15 18 00 |... meth|ods.....|
|00001010| f7 20 74 68 61 74 20 69 | 74 20 63 61 6e 20 65 78 |. that i|t can ex|
|00001020| 65 63 75 74 65 2e 0d 0d | 4b 6e 6f 77 73 20 68 6f |ecute...|Knows ho|
|00001030| 77 20 74 6f 20 62 75 69 | 6c 64 20 6e 65 77 20 6f |w to bui|ld new o|
|00001040| 62 6a 65 63 74 73 20 ff | 00 15 18 02 f7 62 65 6c |bjects .|.....bel|
|00001050| 6f 6e 67 69 6e 67 ff 00 | 15 18 00 f7 20 74 6f 20 |onging..|.... to |
|00001060| 74 68 65 20 63 6c 61 73 | 73 2e 0d 0d 43 6c 61 73 |the clas|s...Clas|
|00001070| 73 20 6e 61 6d 65 73 20 | 62 65 67 69 6e 20 77 69 |s names |begin wi|
|00001080| 74 68 20 75 70 70 65 72 | 63 61 73 65 20 6c 65 74 |th upper|case let|
|00001090| 74 65 72 73 2e 20 ff 00 | 15 18 02 f7 20 28 45 78 |ters. ..|.... (Ex|
|000010a0| 61 6d 70 6c 65 3a 20 20 | 41 70 70 6c 65 ff 00 15 |ample: |Apple...|
|000010b0| 18 00 f7 29 0d 00 0d 09 | 2d 67 72 6f 77 20 7b 2e |...)....|-grow {.|
|000010c0| 2e 2e 7d 0d 00 45 fc 00 | 74 02 a4 00 5e 02 0e 02 |..}..E..|t...^...|
|000010d0| 30 08 00 f7 ff 00 14 0c | 01 f7 0d 0d fb 00 00 00 |0.......|........|
|000010e0| 01 01 60 02 c9 57 4e 47 | 72 61 70 68 69 63 2e 33 |..`..WNG|raphic.3|
|000010f0| 33 35 34 39 35 2e 65 70 | 73 f7 0d 0d 0d ff 00 15 |35495.ep|s.......|
|00001100| 18 01 f7 ff 00 14 0c 01 | f7 0d 0d 00 0f fc 00 73 |........|.......s|
|00001110| 02 a4 00 5d 02 0e 02 30 | 08 00 f7 0d 01 6e fc 00 |...]...0|.....n..|
|00001120| 73 02 a4 00 5d 00 0e 02 | 30 08 00 f7 ff 00 15 18 |s...]...|0.......|
|00001130| 02 f7 46 6f 72 20 65 61 | 63 68 20 63 6c 61 73 73 |..For ea|ch class|
|00001140| 20 75 73 65 64 20 69 6e | 20 61 20 70 72 6f 67 72 | used in| a progr|
|00001150| 61 6d 2c 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |am, the |followin|
|00001160| 67 20 69 73 20 69 6e 20 | 6d 65 6d 6f 72 79 3a ff |g is in |memory:.|
|00001170| 00 15 18 00 f7 0d 0d ff | 00 15 1c 03 f7 43 6c 61 |........|.....Cla|
|00001180| 73 73 20 4f 62 6a 65 63 | 74 ff 00 15 18 00 f7 0d |ss Objec|t.......|
|00001190| 0d 54 68 65 72 65 20 69 | 73 20 6f 6e 65 20 63 6f |.There i|s one co|
|000011a0| 70 79 20 6f 66 20 65 61 | 63 68 20 63 6c 61 73 73 |py of ea|ch class|
|000011b0| 20 6f 62 6a 65 63 74 2e | 20 20 49 74 20 63 6f 6e | object.| It con|
|000011c0| 74 61 69 6e 73 20 74 68 | 65 20 ff 00 15 18 03 f7 |tains th|e ......|
|000011d0| 73 68 61 72 65 61 62 6c | 65 ff 00 15 18 00 f7 20 |shareabl|e...... |
|000011e0| 63 6f 64 65 20 66 6f 72 | 20 74 68 65 20 6d 65 74 |code for| the met|
|000011f0| 68 6f 64 73 2c 20 61 6e | 64 20 6f 74 68 65 72 20 |hods, an|d other |
|00001200| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 64 65 73 63 |informat|ion desc|
|00001210| 72 69 62 69 6e 67 20 74 | 68 65 20 73 74 72 75 63 |ribing t|he struc|
|00001220| 74 75 72 65 20 6f 66 20 | 74 68 65 20 63 6c 61 73 |ture of |the clas|
|00001230| 73 2e 20 20 54 68 69 73 | 20 63 6c 61 73 73 20 6f |s. This| class o|
|00001240| 62 6a 65 63 74 20 68 61 | 73 20 6c 69 6e 6b 73 20 |bject ha|s links |
|00001250| 75 70 20 74 68 65 20 69 | 6e 68 65 72 69 74 61 6e |up the i|nheritan|
|00001260| 63 65 20 63 68 61 69 6e | 20 74 6f 20 73 75 70 65 |ce chain| to supe|
|00001270| 72 63 6c 61 73 73 20 63 | 6c 61 73 73 20 6f 62 6a |rclass c|lass obj|
|00001280| 65 63 74 73 2e ff 00 14 | 0c 01 f7 0d 01 aa fc 00 |ects....|........|
|00001290| 76 02 a4 00 76 02 0e 02 | 9c 07 80 f7 ff 00 15 24 |v...v...|.......$|
|000012a0| 01 f7 4f 62 6a 65 63 74 | 73 20 69 6e 20 4d 65 6d |..Object|s in Mem|
|000012b0| 6f 72 79 0d fc 00 73 02 | a4 00 5d 02 0e 02 30 08 |ory...s.|..]...0.|
|000012c0| 00 f7 ff 00 15 18 00 f7 | 28 63 6f 6e 74 69 6e 75 |........|(continu|
|000012d0| 65 64 29 0d 0d ff 00 15 | 18 00 f7 fc 00 73 02 a4 |ed).....|.....s..|
|000012e0| 00 5d 00 0e 02 30 08 00 | f7 0d ff 00 15 1c 03 f7 |.]...0..|........|
|000012f0| 49 6e 73 74 61 6e 63 65 | 73 ff 00 15 18 00 f7 0d |Instance|s.......|
|00001300| 0d 45 61 63 68 20 69 6e | 73 74 61 6e 63 65 20 61 |.Each in|stance a|
|00001310| 70 70 65 61 72 73 20 61 | 73 20 73 69 6d 70 6c 79 |ppears a|s simply|
|00001320| 20 61 20 64 61 74 61 20 | 73 74 72 75 63 74 75 72 | a data |structur|
|00001330| 65 20 63 6f 6e 74 61 69 | 6e 69 6e 67 20 74 68 61 |e contai|ning tha|
|00001340| 74 20 69 6e 73 74 61 6e | 63 65 27 73 20 ff 00 15 |t instan|ce's ...|
|00001350| 18 03 f7 70 72 69 76 61 | 74 65 ff 00 15 18 00 f7 |...priva|te......|
|00001360| 20 63 6f 70 69 65 73 20 | 6f 66 20 74 68 65 20 ff | copies |of the .|
|00001370| 00 15 18 03 f7 69 6e 73 | 74 61 6e 63 65 20 76 61 |.....ins|tance va|
|00001380| 72 69 61 62 6c 65 73 ff | 00 15 18 00 f7 2e 20 20 |riables.|...... |
|00001390| 54 68 65 20 ff 00 15 18 | 03 f7 69 73 61 ff 00 15 |The ....|..isa...|
|000013a0| 18 00 f7 20 76 61 72 69 | 61 62 6c 65 20 70 6f 69 |... vari|able poi|
|000013b0| 6e 74 73 20 74 6f 20 74 | 68 65 20 69 6e 73 74 61 |nts to t|he insta|
|000013c0| 6e 63 65 27 73 20 43 6c | 61 73 73 20 4f 62 6a 65 |nce's Cl|ass Obje|
|000013d0| 63 74 20 77 68 65 72 65 | 20 6d 65 73 73 61 67 65 |ct where| message|
|000013e0| 73 20 77 69 6c 6c 20 62 | 65 20 64 69 72 65 63 74 |s will b|e direct|
|000013f0| 65 64 20 69 6e 20 73 65 | 61 72 63 68 20 6f 66 20 |ed in se|arch of |
|00001400| 61 20 6d 65 74 68 6f 64 | 2c 20 66 6f 6c 6c 6f 77 |a method|, follow|
|00001410| 69 6e 67 20 74 68 65 20 | 69 6e 68 65 72 69 74 61 |ing the |inherita|
|00001420| 6e 63 65 20 63 68 61 69 | 6e 20 61 73 20 6e 65 63 |nce chai|n as nec|
|00001430| 65 73 73 61 72 79 2e 0d | 00 58 fc 00 49 02 d9 00 |essary..|.X..I...|
|00001440| 48 00 0e 02 30 08 00 f7 | ff 00 15 18 03 f7 45 78 |H...0...|......Ex|
|00001450| 61 6d 70 6c 65 3a 20 20 | 43 6c 61 73 73 ff 00 14 |ample: |Class...|
|00001460| 0c 03 f7 20 ff 00 15 18 | 03 f7 6f 62 6a 65 63 74 |... ....|..object|
|00001470| 73 20 61 6e 64 20 69 6e | 73 74 61 6e 63 65 73 20 |s and in|stances |
|00001480| 69 6e 20 6d 65 6d 6f 72 | 79 2e 0d ff 00 15 0c 03 |in memor|y.......|
|00001490| f7 0d 00 2b ff 00 15 18 | 03 f7 fb 00 00 00 01 01 |...+....|........|
|000014a0| 92 02 91 57 4e 47 72 61 | 70 68 69 63 2e 34 35 30 |...WNGra|phic.450|
|000014b0| 39 31 31 2e 65 70 73 f7 | ff 00 14 0c 01 f7 0d 00 |911.eps.|........|
|000014c0| 39 fc 00 5d 02 a4 00 5d | 00 0e 02 30 08 00 f7 20 |9..]...]|...0... |
|000014d0| 20 20 20 20 20 20 20 20 | 20 fb 00 00 00 01 01 65 | | ......e|
|000014e0| 01 f0 03 57 4e 47 72 61 | 70 68 69 63 2e 33 33 35 |...WNGra|phic.335|
|000014f0| 35 36 30 2e 65 70 73 f7 | 0d 0d 00 1d ff 00 15 10 |560.eps.|........|
|00001500| 00 f7 0d 0d ff 00 15 12 | 03 f7 4f 4f 50 20 54 65 |........|..OOP Te|
|00001510| 63 68 6e 69 71 75 65 73 | 0d 00 15 fc 00 5d 02 bc |chniques|.....]..|
|00001520| 00 5d 02 0e 02 30 06 ec | f7 ff 00 15 1c 01 f7 0d |.]...0..|........|
|00001530| 00 00 00 78 00 03 00 00 | 00 48 00 48 00 00 00 00 |...x....|.H.H....|
|00001540| 02 64 03 18 00 00 00 00 | 02 64 03 18 01 5b 05 28 |.d......|.d...[.(|
|00001550| 03 fc 00 02 00 00 00 48 | 00 48 00 00 00 00 03 18 |.......H|.H......|
|00001560| 02 64 00 01 00 00 00 64 | 00 00 00 01 00 01 01 01 |.d.....d|........|
|00001570| 00 00 00 01 27 0f 00 01 | 00 01 00 00 00 00 00 00 |....'...|........|
|00001580| 00 00 00 00 00 00 00 02 | 00 19 01 90 00 00 00 00 |........|........|
|00001590| 00 40 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.@......|........|
|000015a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 01 31 0d fc |........|.....1..|
|000015b0| 00 74 02 a4 00 74 02 0e | 02 30 08 00 f7 ff 00 15 |.t...t..|.0......|
|000015c0| 28 01 f7 57 68 61 74 20 | 69 73 20 4f 62 6a 65 63 |(..What |is Objec|
|000015d0| 74 2d 4f 72 69 65 6e 74 | 65 64 20 50 72 6f 67 72 |t-Orient|ed Progr|
|000015e0| 61 6d 6d 69 6e 67 20 28 | 4f 4f 50 29 3f ff 00 15 |amming (|OOP)?...|
|000015f0| 12 02 f7 0d fc 00 74 02 | a4 00 74 00 0e 02 30 08 |......t.|..t...0.|
|00001600| 00 f7 ff 00 15 18 00 f7 | 0d 0d fc 00 a2 02 a6 00 |........|........|
|00001610| 73 00 0e 02 30 08 00 f7 | ff 00 15 18 02 f7 41 20 |s...0...|......A |
|00001620| 63 6f 64 65 20 70 61 63 | 6b 61 67 69 6e 67 20 74 |code pac|kaging t|
|00001630| 65 63 68 6e 69 71 75 65 | 2e 0d 0d 41 20 74 6f 70 |echnique|...A top|
|00001640| 2d 64 6f 77 6e 20 64 65 | 73 69 67 6e 20 6d 65 74 |-down de|sign met|
|00001650| 68 6f 64 6f 6c 6f 67 79 | 2e ff 00 15 18 00 f7 0d |hodology|........|
|00001660| ff 00 15 18 02 f7 0d 41 | 20 70 72 6f 63 65 73 73 |.......A| process|
|00001670| 20 6f 66 20 63 72 65 61 | 74 69 6e 67 20 63 6f 6d | of crea|ting com|
|00001680| 70 75 74 65 72 2d 62 61 | 73 65 64 20 6f 62 6a 65 |puter-ba|sed obje|
|00001690| 63 74 73 20 77 68 69 63 | 68 20 61 72 65 20 61 6e |cts whic|h are an|
|000016a0| 61 6c 6f 67 73 20 6f 66 | 20 74 68 65 20 72 65 61 |alogs of| the rea|
|000016b0| 6c 20 77 6f 72 6c 64 2e | 0d 0d 41 20 6d 6f 64 65 |l world.|..A mode|
|000016c0| 6c 6c 69 6e 67 20 61 70 | 70 72 6f 61 63 68 20 74 |lling ap|proach t|
|000016d0| 6f 20 70 72 6f 67 72 61 | 6d 6d 69 6e 67 2e 0d 00 |o progra|mming...|
|000016e0| 33 fc 00 74 02 a4 00 74 | 02 0e 02 30 08 00 f7 ff |3..t...t|...0....|
|000016f0| 00 16 15 01 f7 fb 00 00 | 00 01 01 5b 01 a8 57 4e |........|...[..WN|
|00001700| 47 72 61 70 68 69 63 2e | 35 35 39 32 34 35 2e 65 |Graphic.|559245.e|
|00001710| 70 73 f7 0d 00 96 fc 00 | 6c 02 d0 00 6c 00 0e 02 |ps......|l...l...|
|00001720| 30 08 00 f7 ff 00 15 18 | 00 f7 0d 49 6e 74 65 72 |0.......|...Inter|
|00001730| 6e 61 6c 20 73 74 61 74 | 65 73 20 61 72 65 20 63 |nal stat|es are c|
|00001740| 61 6c 6c 65 64 20 74 68 | 65 20 ff 00 15 18 03 f7 |alled th|e ......|
|00001750| 69 6e 73 74 61 6e 63 65 | 20 76 61 72 69 61 62 6c |instance| variabl|
|00001760| 65 73 2e ff 00 15 18 00 | f7 0d 54 68 65 20 66 75 |es......|..The fu|
|00001770| 6e 63 74 69 6f 6e 73 20 | 75 73 65 64 20 74 6f 20 |nctions |used to |
|00001780| 61 63 63 65 73 73 20 74 | 68 65 6d 20 61 72 65 20 |access t|hem are |
|00001790| 63 61 6c 6c 65 64 20 ff | 00 15 18 03 f7 6d 65 74 |called .|.....met|
|000017a0| 68 6f 64 73 ff 00 15 18 | 00 f7 2e 0d 01 2c fc 00 |hods....|.....,..|
|000017b0| 5e 02 a4 00 5e 00 0e 02 | 30 08 00 f7 ff 00 15 24 |^...^...|0......$|
|000017c0| 03 f7 45 78 61 6d 70 6c | 65 3a 20 20 41 70 70 6c |..Exampl|e: Appl|
|000017d0| 65 20 6f 62 6a 65 63 74 | ff 00 15 1c 00 f7 0d ff |e object|........|
|000017e0| 00 15 18 00 f7 fc 00 74 | 02 a4 00 74 00 0e 02 30 |.......t|...t...0|
|000017f0| 08 00 f7 0d fc 00 5d 02 | bb 00 5d 00 0e 02 30 08 |......].|..]...0.|
|00001800| 00 f7 ff 00 15 18 03 f7 | 0d 49 6e 73 74 61 6e 63 |........|.Instanc|
|00001810| 65 20 76 61 72 69 61 62 | 6c 65 73 3a ff 00 15 18 |e variab|les:....|
|00001820| 00 f7 20 20 73 69 7a 65 | 2c 20 63 6f 6c 6f 72 0d |.. size|, color.|
|00001830| 0d ff 00 15 18 03 f7 4d | 65 74 68 6f 64 73 3a ff |.......M|ethods:.|
|00001840| 00 15 18 00 f7 0d 09 73 | 65 74 53 69 7a 65 3a 20 |.......s|etSize: |
|00001850| 2d 20 73 65 74 73 20 73 | 69 7a 65 20 74 6f 20 61 |- sets s|ize to a|
|00001860| 72 67 75 6d 65 6e 74 20 | 70 61 73 73 65 64 0d 09 |rgument |passed..|
|00001870| 73 69 7a 65 20 2d 20 72 | 65 74 75 72 6e 73 20 74 |size - r|eturns t|
|00001880| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 73 69 7a 65 |he value| of size|
|00001890| 0d 09 67 72 6f 77 20 2d | 20 69 6e 63 72 65 6d 65 |..grow -| increme|
|000018a0| 6e 74 73 20 73 69 7a 65 | 20 62 79 20 6f 6e 65 0d |nts size| by one.|
|000018b0| 09 63 6f 6c 6f 72 20 2d | 20 72 65 74 75 72 6e 73 |.color -| returns|
|000018c0| 20 74 68 65 20 76 61 6c | 75 65 20 6f 66 20 63 6f | the val|ue of co|
|000018d0| 6c 6f 72 ff 00 14 1c 00 | f7 0d 00 10 ff 00 15 12 |lor.....|........|
|000018e0| 00 f7 32 20 2d 20 fd 00 | f7 0d 0d 0d 01 95 fc 00 |..2 - ..|........|
|000018f0| 74 02 a4 00 74 02 0e 02 | 30 08 00 f7 ff 00 15 30 |t...t...|0......0|
|00001900| 01 f7 f5 32 2e 20 20 4d | 65 73 73 61 67 69 6e 67 |...2. M|essaging|
|00001910| ff 00 15 12 01 f7 0d fc | 00 74 02 a4 00 74 00 0e |........|.t...t..|
|00001920| 02 30 08 00 f7 ff 00 15 | 18 00 f7 0d 0d 41 6e 20 |.0......|.....An |
|00001930| 6f 62 6a 65 63 74 20 63 | 61 6e 20 61 73 6b 20 61 |object c|an ask a|
|00001940| 6e 6f 74 68 65 72 20 6f | 62 6a 65 63 74 20 74 6f |nother o|bject to|
|00001950| 20 70 65 72 66 6f 72 6d | 20 6f 6e 65 20 6f 66 20 | perform| one of |
|00001960| 69 74 73 20 6d 65 74 68 | 6f 64 73 20 6f 72 20 61 |its meth|ods or a|
|00001970| 63 74 69 6f 6e 73 20 76 | 69 61 20 61 20 ff 00 15 |ctions v|ia a ...|
|00001980| 18 03 f7 6d 65 73 73 61 | 67 65 ff 00 15 18 00 f7 |...messa|ge......|
|00001990| 2e 0d 0d 41 20 6d 65 73 | 73 61 67 65 20 73 74 61 |...A mes|sage sta|
|000019a0| 74 65 6d 65 6e 74 20 63 | 6f 6e 74 61 69 6e 73 3a |tement c|ontains:|
|000019b0| 0d 0d fc 00 8a 02 a4 00 | 8a 00 0e 02 30 08 00 f7 |........|....0...|
|000019c0| 31 29 20 41 20 ff 00 15 | 18 03 f7 72 65 66 65 72 |1) A ...|...refer|
|000019d0| 65 6e 63 65 ff 00 15 18 | 00 f7 20 74 6f 20 74 68 |ence....|.. to th|
|000019e0| 65 20 6f 62 6a 65 63 74 | 20 77 68 69 63 68 20 69 |e object| which i|
|000019f0| 73 20 74 6f 20 62 65 20 | 63 61 6c 6c 65 64 20 28 |s to be |called (|
|00001a00| 74 68 65 20 ff 00 15 18 | 03 f7 72 65 63 65 69 76 |the ....|..receiv|
|00001a10| 65 72 ff 00 15 18 00 f7 | 29 2e 0d 0d 32 29 20 54 |er......|)...2) T|
|00001a20| 68 65 20 ff 00 15 18 03 | f7 6e 61 6d 65 ff 00 15 |he .....|.name...|
|00001a30| 18 00 f7 20 6f 66 20 74 | 68 65 20 6d 65 74 68 6f |... of t|he metho|
|00001a40| 64 20 74 6f 20 62 65 20 | 65 78 65 63 75 74 65 64 |d to be |executed|
|00001a50| 0d 0d 33 29 20 41 6e 79 | 20 ff 00 15 18 03 f7 61 |..3) Any| ......a|
|00001a60| 72 67 75 6d 65 6e 74 73 | ff 00 15 18 02 f7 2c ff |rguments|......,.|
|00001a70| 00 15 18 00 f7 20 69 66 | 20 72 65 71 75 69 72 65 |..... if| require|
|00001a80| 64 2e 0d 03 7e fc 00 63 | 02 d0 00 48 00 0e f7 ff |d...~..c|...H....|
|00001a90| 00 15 24 03 f7 52 65 66 | 65 72 65 6e 63 65 73 ff |..$..Ref|erences.|
|00001aa0| 00 15 0e 03 f7 0d fc 00 | 5a 02 d1 00 5a 00 0e 02 |........|Z...Z...|
|00001ab0| 9c 07 80 f7 0d fc 00 63 | 02 d0 00 48 00 0e f7 ff |.......c|...H....|
|00001ac0| 00 15 14 02 f7 41 6e 20 | 49 6e 74 72 6f 64 75 63 |.....An |Introduc|
|00001ad0| 74 69 6f 6e 20 74 6f 20 | 4f 62 6a 65 63 74 2d 4f |tion to |Object-O|
|00001ae0| 72 69 65 6e 74 65 64 20 | 50 72 6f 67 72 61 6d 6d |riented |Programm|
|00001af0| 69 6e 67 ff 00 15 14 00 | f7 2c 20 62 79 20 54 69 |ing.....|., by Ti|
|00001b00| 6d 6f 74 68 79 20 42 75 | 64 64 2c 20 41 64 64 69 |mothy Bu|dd, Addi|
|00001b10| 73 6f 6e 2d 57 65 73 6c | 65 79 2c 20 31 39 39 31 |son-Wesl|ey, 1991|
|00001b20| 2e 20 20 41 6e 20 65 78 | 63 65 6c 6c 65 6e 74 20 |. An ex|cellent |
|00001b30| 62 6f 6f 6b 20 6f 6e 20 | 4f 4f 50 2c 20 77 69 74 |book on |OOP, wit|
|00001b40| 68 20 63 6f 6d 70 61 72 | 69 73 6f 6e 73 20 62 65 |h compar|isons be|
|00001b50| 74 77 65 65 6e 20 4f 62 | 6a 65 63 74 69 76 65 2d |tween Ob|jective-|
|00001b60| 43 2c 20 43 2b 2b 2c 20 | 4f 62 6a 65 63 74 20 50 |C, C++, |Object P|
|00001b70| 61 73 63 61 6c 2c 20 61 | 6e 64 20 53 6d 61 6c 6c |ascal, a|nd Small|
|00001b80| 74 61 6c 6b 2e 0d 0d ff | 00 15 14 02 f7 4f 62 6a |talk....|.....Obj|
|00001b90| 65 63 74 2d 4f 72 69 65 | 6e 74 65 64 20 50 72 6f |ect-Orie|nted Pro|
|00001ba0| 67 72 61 6d 6d 69 6e 67 | 3a 20 41 6e 20 45 76 6f |gramming|: An Evo|
|00001bb0| 6c 75 74 69 6f 6e 61 72 | 79 20 41 70 70 72 6f 61 |lutionar|y Approa|
|00001bc0| 63 68 ff 00 15 14 00 f7 | 2c 20 62 79 20 42 72 61 |ch......|, by Bra|
|00001bd0| 64 20 43 6f 78 2c 20 41 | 64 64 69 73 6f 6e 2d 57 |d Cox, A|ddison-W|
|00001be0| 65 73 6c 65 79 2c 20 31 | 39 38 37 2e 20 20 54 68 |esley, 1|987. Th|
|00001bf0| 69 73 20 62 6f 6f 6b 20 | 68 61 73 20 4f 62 6a 65 |is book |has Obje|
|00001c00| 63 74 69 76 65 2d 43 20 | 65 78 61 6d 70 6c 65 73 |ctive-C |examples|
|00001c10| 2c 20 62 75 74 20 69 73 | 20 62 65 73 74 20 66 6f |, but is| best fo|
|00001c20| 72 20 62 61 63 6b 67 72 | 6f 75 6e 64 20 69 6e 66 |r backgr|ound inf|
|00001c30| 6f 72 6d 61 74 69 6f 6e | 2c 20 6e 6f 74 20 61 73 |ormation|, not as|
|00001c40| 20 61 20 72 65 66 65 72 | 65 6e 63 65 20 6d 61 6e | a refer|ence man|
|00001c50| 75 61 6c 2e 0d 0d ff 00 | 15 14 02 f7 4f 62 6a 65 |ual.....|....Obje|
|00001c60| 63 74 69 76 65 2d 43 20 | 3a 20 4f 62 6a 65 63 74 |ctive-C |: Object|
|00001c70| 2d 4f 72 69 65 6e 74 65 | 64 20 50 72 6f 67 72 61 |-Oriente|d Progra|
|00001c80| 6d 6d 69 6e 67 20 54 65 | 63 68 6e 69 71 75 65 73 |mming Te|chniques|
|00001c90| ff 00 15 14 00 f7 2c 20 | 62 79 20 4c 65 77 69 73 |......, |by Lewis|
|00001ca0| 20 4a 2e 20 50 69 6e 73 | 6f 6e 20 26 20 52 69 63 | J. Pins|on & Ric|
|00001cb0| 68 61 72 64 20 53 2e 20 | 57 69 65 6e 65 72 2c 20 |hard S. |Wiener, |
|00001cc0| 41 64 64 69 73 6f 6e 2d | 57 65 73 6c 65 79 2c 20 |Addison-|Wesley, |
|00001cd0| 31 39 39 31 2e 20 20 41 | 20 67 6f 6f 64 20 62 6f |1991. A| good bo|
|00001ce0| 6f 6b 20 66 6f 72 20 4f | 4f 50 20 77 69 74 68 20 |ok for O|OP with |
|00001cf0| 4f 62 6a 65 63 74 69 76 | 65 2d 43 20 65 78 61 6d |Objectiv|e-C exam|
|00001d00| 70 6c 65 73 2e 0d 0d ff | 00 15 14 02 f7 41 6e 20 |ples....|.....An |
|00001d10| 49 6e 74 72 6f 64 75 63 | 74 69 6f 6e 20 74 6f 20 |Introduc|tion to |
|00001d20| ff 00 15 14 02 f7 4f 62 | 6a 65 63 74 2d 4f 72 69 |......Ob|ject-Ori|
|00001d30| 65 6e 74 65 64 20 50 72 | 6f 67 72 61 6d 6d 69 6e |ented Pr|ogrammin|
|00001d40| 67 20 61 6e 64 20 53 6d | 61 6c 6c 74 61 6c 6b ff |g and Sm|alltalk.|
|00001d50| 00 15 14 00 f7 2c 20 62 | 79 20 4c 65 77 69 73 20 |....., b|y Lewis |
|00001d60| 4a 2e 20 50 69 6e 73 6f | 6e 20 26 20 52 69 63 68 |J. Pinso|n & Rich|
|00001d70| 61 72 64 20 53 2e 20 57 | 69 65 6e 65 72 2c 20 41 |ard S. W|iener, A|
|00001d80| 64 64 69 73 6f 6e 2d 57 | 65 73 6c 65 79 2c 20 31 |ddison-W|esley, 1|
|00001d90| 39 38 38 2e 20 20 41 6c | 74 68 6f 75 67 68 20 74 |988. Al|though t|
|00001da0| 68 65 20 62 6f 6f 6b 20 | 69 73 20 61 62 6f 75 74 |he book |is about|
|00001db0| 20 53 6d 61 6c 6c 74 61 | 6c 6b 2c 20 43 68 61 70 | Smallta|lk, Chap|
|00001dc0| 74 65 72 20 31 20 68 61 | 73 20 73 6f 6d 65 20 67 |ter 1 ha|s some g|
|00001dd0| 6f 6f 64 20 67 65 6e 65 | 72 61 6c 20 4f 4f 50 20 |ood gene|ral OOP |
|00001de0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 74 68 61 74 |informat|ion that|
|00001df0| 20 69 73 20 77 6f 72 74 | 68 20 72 65 61 64 69 6e | is wort|h readin|
|00001e00| 67 2e 0d 01 72 fc 00 74 | 02 a4 00 74 00 0e 02 30 |g...r..t|...t...0|
|00001e10| 08 00 f7 ff 00 15 24 03 | f7 45 78 61 6d 70 6c 65 |......$.|.Example|
|00001e20| 20 6f 66 20 4d 65 73 73 | 61 67 69 6e 67 ff 00 15 | of Mess|aging...|
|00001e30| 18 00 f7 0d 0d 44 65 63 | 6c 61 72 65 20 61 6e 20 |.....Dec|lare an |
|00001e40| 6f 62 6a 65 63 74 20 74 | 6f 20 62 65 20 69 6e 20 |object t|o be in |
|00001e50| 74 68 65 20 22 41 70 70 | 6c 65 22 20 63 6c 61 73 |the "App|le" clas|
|00001e60| 73 2c 20 61 6e 64 20 73 | 65 6e 64 20 61 20 22 73 |s, and s|end a "s|
|00001e70| 65 74 53 69 7a 65 3a 22 | 20 6d 65 73 73 61 67 65 |etSize:"| message|
|00001e80| 20 74 6f 20 69 74 3a 0d | 0d ff 00 16 18 01 f7 41 | to it:.|.......A|
|00001e90| 70 70 6c 65 20 2a 6d 79 | 41 70 70 6c 65 3b 0d 2e |pple *my|Apple;..|
|00001ea0| 0d 2e 0d 5b 6d 79 41 70 | 70 6c 65 20 73 65 74 53 |...[myAp|ple setS|
|00001eb0| 69 7a 65 3a 35 5d 3b ff | 00 14 18 00 f7 0d 0d 09 |ize:5];.|........|
|00001ec0| ff 00 15 18 03 f7 74 61 | 72 67 65 74 20 6f 62 6a |......ta|rget obj|
|00001ed0| 65 63 74 3a ff 00 16 18 | 01 f7 20 6d 79 41 70 70 |ect:....|.. myApp|
|00001ee0| 6c 65 0d ff 00 16 0c 03 | f7 0d ff 00 16 18 01 f7 |le......|........|
|00001ef0| 09 ff 00 15 18 03 f7 63 | 6c 61 73 73 20 6f 66 20 |.......c|lass of |
|00001f00| 74 61 72 67 65 74 3a ff | 00 16 18 01 f7 20 41 70 |target:.|..... Ap|
|00001f10| 70 6c 65 ff 00 14 18 01 | f7 0d ff 00 14 0c 01 f7 |ple.....|........|
|00001f20| 0d ff 00 14 18 01 f7 09 | ff 00 15 18 03 f7 6d 65 |........|......me|
|00001f30| 73 73 61 67 65 20 6e 61 | 6d 65 3a ff 00 16 18 01 |ssage na|me:.....|
|00001f40| f7 20 73 65 74 53 69 7a | 65 3a ff 00 14 18 01 f7 |. setSiz|e:......|
|00001f50| 0d ff 00 14 0c 01 f7 0d | ff 00 14 18 01 f7 09 ff |........|........|
|00001f60| 00 15 18 03 f7 61 72 67 | 75 6d 65 6e 74 3a ff 00 |.....arg|ument:..|
|00001f70| 16 18 01 f7 20 35 0d 01 | b1 ff 00 15 24 03 f7 fc |.... 5..|....$...|
|00001f80| 00 74 02 a4 00 74 02 0e | 02 30 08 00 f7 f5 ff 00 |.t...t..|.0......|
|00001f90| 14 18 00 f7 0d ff 00 15 | 24 01 f7 f5 43 6f 6e 74 |........|$...Cont|
|00001fa0| 72 6f 6c 20 6f 66 20 50 | 72 6f 63 65 64 75 72 65 |rol of P|rocedure|
|00001fb0| 73 0d fc 00 74 02 a4 00 | 74 00 0e 02 30 08 00 f7 |s...t...|t...0...|
|00001fc0| ff 00 15 18 00 f7 0d fc | 00 8c 02 a4 00 5d 00 0e |........|.....]..|
|00001fd0| 02 30 08 00 f7 43 6c 61 | 73 73 65 73 2c 20 69 6e |.0...Cla|sses, in|
|00001fe0| 68 65 72 69 74 61 6e 63 | 65 2c 20 6d 65 73 73 61 |heritanc|e, messa|
|00001ff0| 67 69 6e 67 2c 20 61 6e | 64 20 70 6f 6c 79 6d 6f |ging, an|d polymo|
|00002000| 72 70 68 69 73 6d 20 70 | 72 6f 76 69 64 65 20 6f |rphism p|rovide o|
|00002010| 6e 65 20 61 6e 73 77 65 | 72 20 74 6f 20 74 77 6f |ne answe|r to two|
|00002020| 20 69 6d 70 6f 72 74 61 | 6e 74 20 71 75 65 73 74 | importa|nt quest|
|00002030| 69 6f 6e 73 3a 0d fc 00 | 74 02 a4 00 74 00 0e 02 |ions:...|t...t...|
|00002040| 30 08 00 f7 0d 09 2d 20 | ff 00 15 18 02 f7 57 68 |0.....- |......Wh|
|00002050| 65 72 65 ff 00 15 18 00 | f7 20 69 73 20 6b 6e 6f |ere.....|. is kno|
|00002060| 77 6c 65 64 67 65 20 61 | 62 6f 75 74 20 70 72 6f |wledge a|bout pro|
|00002070| 63 65 64 75 72 65 73 20 | 73 74 6f 72 65 64 3f 0d |cedures |stored?.|
|00002080| 09 2d 20 57 68 61 74 20 | 70 72 6f 63 65 73 73 20 |.- What |process |
|00002090| 64 65 63 69 64 65 73 20 | ff 00 15 18 02 f7 77 68 |decides |......wh|
|000020a0| 69 63 68 ff 00 15 18 00 | f7 20 70 72 6f 63 65 64 |ich.....|. proced|
|000020b0| 75 72 65 73 20 61 63 74 | 3f 0d 0d 0d 54 77 6f 20 |ures act|?...Two |
|000020c0| 61 70 70 72 6f 61 63 68 | 65 73 20 63 61 6e 20 62 |approach|es can b|
|000020d0| 65 20 74 61 6b 65 6e 3a | 0d 0d 09 2d 20 ff 00 15 |e taken:|...- ...|
|000020e0| 18 01 f7 41 63 74 69 6f | 6e 2d 63 65 6e 74 65 72 |...Actio|n-center|
|000020f0| 65 64 ff 00 15 18 00 f7 | 20 63 6f 6e 74 72 6f 6c |ed......| control|
|00002100| 0d 0d 09 2d 20 ff 00 15 | 18 01 f7 4f 62 6a 65 63 |...- ...|...Objec|
|00002110| 74 2d 63 65 6e 74 65 72 | 65 64 ff 00 15 18 00 f7 |t-center|ed......|
|00002120| 20 63 6f 6e 74 72 6f 6c | 0d 0d 02 1e ff 00 15 30 | control|.......0|
|00002130| 01 f7 fc 00 5d 02 d3 00 | 5d 02 0e 02 30 08 00 f7 |....]...|]...0...|
|00002140| f5 35 2e 20 20 44 79 6e | 61 6d 69 63 20 42 69 6e |.5. Dyn|amic Bin|
|00002150| 64 69 6e 67 ff 00 15 30 | 00 f7 0d fc 00 5c 02 d2 |ding...0|.....\..|
|00002160| 00 5c 02 0e 02 30 08 00 | f7 ff 00 15 24 00 f7 28 |.\...0..|....$..(|
|00002170| 6c 61 74 65 20 62 69 6e | 64 69 6e 67 2c 20 72 75 |late bin|ding, ru|
|00002180| 6e 74 69 6d 65 20 62 69 | 6e 64 69 6e 67 29 0d fc |ntime bi|nding)..|
|00002190| 00 74 02 a4 00 74 00 0e | 02 30 08 00 f7 0d fc 00 |.t...t..|.0......|
|000021a0| a2 02 a5 00 74 00 0e 02 | 30 08 00 f7 ff 00 15 18 |....t...|0.......|
|000021b0| 00 f7 54 77 6f 20 61 70 | 70 72 6f 61 63 68 65 73 |..Two ap|proaches|
|000021c0| 20 74 6f 20 ff 00 15 18 | 02 f7 6d 65 74 68 6f 64 | to ....|..method|
|000021d0| 20 62 69 6e 64 69 6e 67 | ff 00 15 18 00 f7 20 77 | binding|...... w|
|000021e0| 68 65 6e 20 73 65 6e 64 | 69 6e 67 20 61 20 6d 65 |hen send|ing a me|
|000021f0| 73 73 61 67 65 20 74 6f | 20 61 20 76 61 72 69 61 |ssage to| a varia|
|00002200| 62 6c 65 20 28 20 70 6f | 69 6e 74 65 72 20 74 6f |ble ( po|inter to|
|00002210| 20 61 6e 20 6f 62 6a 65 | 63 74 29 3a 0d 0d 2d 20 | an obje|ct):..- |
|00002220| ff 00 15 18 01 f7 73 74 | 61 74 69 63 20 62 69 6e |......st|atic bin|
|00002230| 64 69 6e 67 3a ff 00 15 | 18 00 f7 20 20 4d 61 74 |ding:...|... Mat|
|00002240| 63 68 69 6e 67 20 74 68 | 65 20 6d 65 73 73 61 67 |ching th|e messag|
|00002250| 65 20 74 6f 20 74 68 65 | 20 6d 65 74 68 6f 64 20 |e to the| method |
|00002260| 69 73 20 64 6f 6e 65 20 | 62 79 20 74 68 65 20 63 |is done |by the c|
|00002270| 6f 6d 70 69 6c 65 72 20 | 62 61 73 65 64 20 6f 6e |ompiler |based on|
|00002280| 20 74 68 65 20 73 74 61 | 74 69 63 20 64 65 63 6c | the sta|tic decl|
|00002290| 61 72 61 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 74 |aration |of the t|
|000022a0| 79 70 65 20 6f 66 20 74 | 68 65 20 76 61 72 69 61 |ype of t|he varia|
|000022b0| 62 6c 65 2e 0d 0d 2d 20 | ff 00 15 18 01 f7 64 79 |ble...- |......dy|
|000022c0| 6e 61 6d 69 63 20 62 69 | 6e 64 69 6e 67 3a ff 00 |namic bi|nding:..|
|000022d0| 15 18 00 f7 20 20 54 68 | 65 20 72 75 6e 74 69 6d |.... Th|e runtim|
|000022e0| 65 20 73 79 73 74 65 6d | 20 64 69 73 63 6f 76 65 |e system| discove|
|000022f0| 72 73 20 74 68 65 20 74 | 79 70 65 20 28 63 6c 61 |rs the t|ype (cla|
|00002300| 73 73 29 20 6f 66 20 74 | 68 65 20 76 61 72 69 61 |ss) of t|he varia|
|00002310| 62 6c 65 20 62 61 73 65 | 64 20 6f 6e 20 69 74 73 |ble base|d on its|
|00002320| 20 76 61 6c 75 65 20 61 | 74 20 74 68 65 20 74 69 | value a|t the ti|
|00002330| 6d 65 20 74 68 65 20 6d | 65 73 73 61 67 65 20 69 |me the m|essage i|
|00002340| 73 20 73 65 6e 74 2e 20 | 0d 0d 00 7a ff 00 15 18 |s sent. |...z....|
|00002350| 03 f7 fc 00 48 02 d0 00 | 48 00 0e 02 30 08 00 f7 |....H...|H...0...|
|00002360| 45 78 61 6d 70 6c 65 3a | ff 00 15 18 01 f7 20 20 |Example:|...... |
|00002370| ff 00 15 18 00 f7 45 64 | 69 74 20 63 61 6e 6e 6f |......Ed|it canno|
|00002380| 74 20 6b 6e 6f 77 20 74 | 68 65 20 63 6c 61 73 73 |t know t|he class|
|00002390| 20 6f 66 20 74 68 65 20 | 6f 62 6a 65 63 74 20 74 | of the |object t|
|000023a0| 6f 20 62 65 20 22 63 75 | 74 22 20 75 6e 74 69 6c |o be "cu|t" until|
|000023b0| 20 72 75 6e 74 69 6d 65 | ff 00 15 18 00 f7 2e ff | runtime|........|
|000023c0| 00 14 18 00 f7 0d 01 f6 | fc 00 6c 02 d1 00 6c 02 |........|..l...l.|
|000023d0| 0e 02 40 08 00 f7 ff 00 | 15 28 01 f7 53 75 6d 6d |..@.....|.(..Summ|
|000023e0| 61 72 79 20 6f 66 20 4f | 4f 50 ff 00 15 18 02 f7 |ary of O|OP......|
|000023f0| 20 28 63 6f 6e 74 69 6e | 75 65 64 29 ff 00 15 18 | (contin|ued)....|
|00002400| 00 f7 0d fc 00 6c 02 d1 | 00 6c 00 0e 02 40 08 00 |.....l..|.l...@..|
|00002410| f7 0d 35 2e 20 20 41 62 | 73 74 72 61 63 74 69 6f |..5. Ab|stractio|
|00002420| 6e 20 69 73 20 73 75 70 | 70 6f 72 74 65 64 20 62 |n is sup|ported b|
|00002430| 79 20 61 20 68 69 65 72 | 61 72 63 68 79 20 6f 66 |y a hier|archy of|
|00002440| 20 63 6c 61 73 73 65 73 | 20 72 65 70 72 65 73 65 | classes| represe|
|00002450| 6e 74 69 6e 67 20 64 69 | 66 66 65 72 65 6e 74 20 |nting di|fferent |
|00002460| 6b 69 6e 64 73 20 6f 66 | 20 6f 62 6a 65 63 74 73 |kinds of| objects|
|00002470| 2e 20 20 41 20 63 6c 61 | 73 73 20 64 65 73 63 72 |. A cla|ss descr|
|00002480| 69 70 74 69 6f 6e 20 70 | 72 6f 74 6f 63 6f 6c 20 |iption p|rotocol |
|00002490| 64 65 66 69 6e 65 73 20 | 74 68 65 20 70 72 6f 70 |defines |the prop|
|000024a0| 65 72 74 69 65 73 20 6f | 66 20 65 61 63 68 20 61 |erties o|f each a|
|000024b0| 62 73 74 72 61 63 74 69 | 6f 6e 2e 20 20 4e 65 77 |bstracti|on. New|
|000024c0| 20 61 62 73 74 72 61 63 | 74 69 6f 6e 73 20 61 72 | abstrac|tions ar|
|000024d0| 65 20 61 64 64 65 64 20 | 62 79 20 61 64 64 69 6e |e added |by addin|
|000024e0| 67 20 6e 65 77 20 73 75 | 62 63 6c 61 73 73 65 73 |g new su|bclasses|
|000024f0| 2e 0d 0d 36 2e 20 20 53 | 75 62 63 6c 61 73 73 65 |...6. S|ubclasse|
|00002500| 73 20 69 6e 68 65 72 69 | 74 20 74 68 65 20 70 72 |s inheri|t the pr|
|00002510| 6f 70 65 72 74 69 65 73 | 20 6f 66 20 74 68 65 69 |operties| of thei|
|00002520| 72 20 73 75 70 65 72 63 | 6c 61 73 73 65 73 2c 20 |r superc|lasses, |
|00002530| 69 6e 63 6c 75 64 69 6e | 67 20 70 72 69 76 61 74 |includin|g privat|
|00002540| 65 20 64 61 74 61 20 61 | 6e 64 20 6d 65 74 68 6f |e data a|nd metho|
|00002550| 64 73 2e 0d 0d 37 2e 20 | 20 41 62 73 74 72 61 63 |ds...7. | Abstrac|
|00002560| 74 69 6f 6e 20 69 73 20 | 66 75 72 74 68 65 72 20 |tion is |further |
|00002570| 73 75 70 70 6f 72 74 65 | 64 20 62 79 20 70 6f 6c |supporte|d by pol|
|00002580| 79 6d 6f 72 70 68 69 63 | 20 64 65 66 69 6e 69 74 |ymorphic| definit|
|00002590| 69 6f 6e 20 6f 66 20 74 | 68 65 20 73 61 6d 65 20 |ion of t|he same |
|000025a0| 6d 65 73 73 61 67 65 20 | 69 6e 20 64 69 66 66 65 |message |in diffe|
|000025b0| 72 65 6e 74 20 63 6c 61 | 73 73 65 73 2e 0d 00 1e |rent cla|sses....|
|000025c0| 0d 0d 4f 62 6a 65 63 74 | 2d 4f 72 69 65 6e 74 65 |..Object|-Oriente|
|000025d0| 64 20 50 72 6f 67 72 61 | 6d 6d 69 6e 67 0d 00 3a |d Progra|mming..:|
|000025e0| fc 00 47 02 d3 00 47 02 | 0e 02 30 08 00 f7 ff 00 |..G...G.|..0.....|
|000025f0| 15 18 01 f7 53 61 6d 70 | 6c 65 20 49 6e 68 65 72 |....Samp|le Inher|
|00002600| 69 74 61 6e 63 65 20 48 | 69 65 72 61 72 63 68 79 |itance H|ierarchy|
|00002610| 0d 0d 43 6c 61 73 73 65 | 73 0d 00 58 fc 00 8c 02 |..Classe|s..X....|
|00002620| bc 00 6c 00 0e 02 30 08 | 00 f7 ff 00 15 18 02 f7 |..l...0.|........|
|00002630| 45 78 61 6d 70 6c 65 3a | 20 20 ff 00 15 18 03 f7 |Example:| ......|
|00002640| 41 70 70 6c 65 ff 00 15 | 18 02 f7 20 69 73 20 73 |Apple...|... is s|
|00002650| 75 62 63 6c 61 73 73 20 | 6f 66 20 ff 00 15 18 03 |ubclass |of .....|
|00002660| f7 46 72 75 69 74 ff 00 | 15 18 02 f7 2e ff 00 15 |.Fruit..|........|
|00002670| 18 00 f7 0d 00 01 0d 02 | 2b f9 00 f7 ff 00 14 18 |........|+.......|
|00002680| 01 f7 fc 00 74 02 a4 00 | 74 00 0e 02 30 08 00 f7 |....t...|t...0...|
|00002690| 0d fc 00 74 02 a4 00 74 | 02 0e 02 30 08 00 f7 ff |...t...t|...0....|
|000026a0| 00 15 30 01 f7 33 2e 20 | 20 50 6f 6c 79 6d 6f 72 |..0..3. | Polymor|
|000026b0| 70 68 69 73 6d 0d fc 00 | 5d 02 d2 00 5d 00 0e 02 |phism...|]...]...|
|000026c0| 30 08 00 f7 f9 00 f7 ff | 00 15 18 00 f7 0d fc 00 |0.......|........|
|000026d0| 6c 02 d2 00 5b 00 0e 02 | 30 08 00 f7 54 68 65 20 |l...[...|0...The |
|000026e0| 74 65 72 6d ff 00 15 18 | 03 f7 20 70 ff 00 15 18 |term....|.. p....|
|000026f0| 03 f7 6f 6c 79 6d 6f 72 | 70 68 69 73 6d ff 00 15 |..olymor|phism...|
|00002700| 18 00 f7 20 67 65 6e 65 | 72 61 6c 6c 79 20 72 65 |... gene|rally re|
|00002710| 66 65 72 73 20 74 6f 20 | 74 68 65 20 61 62 69 6c |fers to |the abil|
|00002720| 69 74 79 20 74 6f 20 74 | 61 6b 65 20 6f 6e 20 6d |ity to t|ake on m|
|00002730| 6f 72 65 20 74 68 61 6e | 20 6f 6e 65 20 66 6f 72 |ore than| one for|
|00002740| 6d 2e 0d 0d 4f 70 65 72 | 61 74 6f 72 20 6f 76 65 |m...Oper|ator ove|
|00002750| 72 6c 6f 61 64 69 6e 67 | 20 69 73 20 61 20 66 6f |rloading| is a fo|
|00002760| 72 6d 20 6f 66 20 70 6f | 6c 79 6d 6f 72 70 68 69 |rm of po|lymorphi|
|00002770| 73 6d 20 75 73 65 64 20 | 69 6e 20 73 6f 6d 65 20 |sm used |in some |
|00002780| 63 6f 6e 76 65 6e 74 69 | 6f 6e 61 6c 20 70 72 6f |conventi|onal pro|
|00002790| 67 72 61 6d 6d 69 6e 67 | 20 6c 61 6e 67 75 61 67 |gramming| languag|
|000027a0| 65 73 2e 0d 0d 49 6e 20 | 6f 62 6a 65 63 74 2d 6f |es...In |object-o|
|000027b0| 72 69 65 6e 74 65 64 20 | 6c 61 6e 67 75 61 67 65 |riented |language|
|000027c0| 73 2c 20 61 20 ff 00 15 | 18 02 f7 70 6f 6c 79 6d |s, a ...|...polym|
|000027d0| 6f 72 70 68 69 63 20 6f | 62 6a 65 63 74 ff 00 15 |orphic o|bject...|
|000027e0| 18 00 f7 20 69 73 20 61 | 20 76 61 72 69 61 62 6c |... is a| variabl|
|000027f0| 65 20 77 68 69 63 68 20 | 63 61 6e 2c 20 64 75 72 |e which |can, dur|
|00002800| 69 6e 67 20 74 68 65 20 | 63 6f 75 72 73 65 20 6f |ing the |course o|
|00002810| 66 20 65 78 65 63 75 74 | 69 6f 6e 2c 20 70 6f 69 |f execut|ion, poi|
|00002820| 6e 74 20 74 6f 20 6f 62 | 6a 65 63 74 73 20 6f 66 |nt to ob|jects of|
|00002830| 20 6d 6f 72 65 20 74 68 | 61 6e 20 6f 6e 65 20 63 | more th|an one c|
|00002840| 6c 61 73 73 2e 0d 0d 50 | 6f 6c 79 6d 6f 72 70 68 |lass...P|olymorph|
|00002850| 69 63 20 6f 62 6a 65 63 | 74 20 72 65 66 65 72 65 |ic objec|t refere|
|00002860| 6e 63 65 73 20 61 6c 6c | 6f 77 20 74 68 65 20 70 |nces all|ow the p|
|00002870| 72 6f 67 72 61 6d 6d 65 | 72 20 74 6f 20 64 65 73 |rogramme|r to des|
|00002880| 69 67 6e 20 61 74 20 61 | 20 68 69 67 68 20 6c 65 |ign at a| high le|
|00002890| 76 65 6c 20 6f 66 20 61 | 62 73 74 72 61 63 74 69 |vel of a|bstracti|
|000028a0| 6f 6e 2e 0d 02 71 fc 00 | 60 02 bb 00 60 00 0e 02 |on...q..|`...`...|
|000028b0| 30 08 00 f7 ff 00 15 24 | 03 f7 45 78 61 6d 70 6c |0......$|..Exampl|
|000028c0| 65 20 6f 66 20 44 79 6e | 61 6d 69 63 20 42 69 6e |e of Dyn|amic Bin|
|000028d0| 64 69 6e 67 ff 00 15 18 | 00 f7 0d fc 00 a2 02 a5 |ding....|........|
|000028e0| 00 74 00 0e 02 30 08 00 | f7 0d fc 00 7c 02 bb 00 |.t...0..|....|...|
|000028f0| 62 00 0e 02 30 08 00 f7 | 41 73 6b 20 61 20 22 62 |b...0...|Ask a "b|
|00002900| 61 73 6b 65 74 22 20 6f | 62 6a 65 63 74 20 66 6f |asket" o|bject fo|
|00002910| 72 20 61 6e 20 69 74 65 | 6d 2c 20 61 6e 64 20 73 |r an ite|m, and s|
|00002920| 65 6e 64 20 61 20 22 67 | 72 6f 77 22 20 6d 65 73 |end a "g|row" mes|
|00002930| 73 61 67 65 20 74 6f 20 | 69 74 2c 20 77 69 74 68 |sage to |it, with|
|00002940| 6f 75 74 20 6b 6e 6f 77 | 69 6e 67 20 77 68 65 74 |out know|ing whet|
|00002950| 68 65 72 20 69 74 20 69 | 73 20 22 61 70 70 6c 65 |her it i|s "apple|
|00002960| 22 20 6f 72 20 22 62 61 | 6e 61 6e 61 22 2e 20 20 |" or "ba|nana". |
|00002970| 0d 0d ff 00 16 18 01 f7 | 42 61 73 6b 65 74 20 2a |........|Basket *|
|00002980| 6d 79 42 61 73 6b 65 74 | 3b 0d fc 00 7c 02 bb 00 |myBasket|;...|...|
|00002990| 62 00 0e 02 30 06 18 f7 | 69 64 20 66 72 75 69 74 |b...0...|id fruit|
|000029a0| 49 74 65 6d 3b 09 2f 2f | 63 6c 61 73 73 20 75 6e |Item;.//|class un|
|000029b0| 6b 6e 6f 77 6e 0d fc 00 | 7c 02 bb 00 62 00 0e 02 |known...||...b...|
|000029c0| 30 08 88 f7 66 72 75 69 | 74 49 74 65 6d 20 3d 20 |0...frui|tItem = |
|000029d0| 5b 6d 79 42 61 73 6b 65 | 74 20 20 69 74 65 6d 5d |[myBaske|t item]|
|000029e0| 3b 09 2f 2f 67 65 74 20 | 69 74 65 6d 0d fc 00 7c |;.//get |item...||
|000029f0| 02 bb 00 62 00 0e 02 30 | 06 20 f7 5b 66 72 75 69 |...b...0|. .[frui|
|00002a00| 74 49 74 65 6d 20 20 67 | 72 6f 77 5d 3b 09 2f 2f |tItem g|row];.//|
|00002a10| 74 65 6c 6c 20 69 74 20 | 74 6f 20 67 72 6f 77 ff |tell it |to grow.|
|00002a20| 00 16 18 00 f7 0d ff 00 | 16 0c 00 f7 fc 00 7c 02 |........|......|.|
|00002a30| bb 00 62 00 0e 02 30 08 | 00 f7 0d ff 00 15 18 00 |..b...0.|........|
|00002a40| f7 2d 2d 2d 3e 20 43 61 | 6e 6e 6f 74 20 62 69 6e |.---> Ca|nnot bin|
|00002a50| 64 20 28 6c 69 6e 6b 29 | 20 74 6f 20 22 67 72 6f |d (link)| to "gro|
|00002a60| 77 22 20 6d 65 74 68 6f | 64 20 6f 66 20 65 69 74 |w" metho|d of eit|
|00002a70| 68 65 72 20 41 70 70 6c | 65 20 6f 72 20 42 61 6e |her Appl|e or Ban|
|00002a80| 61 6e 61 20 63 6c 61 73 | 73 20 75 6e 74 69 6c 20 |ana clas|s until |
|00002a90| 72 75 6e 74 69 6d 65 2e | 20 20 4f 6e 6c 79 20 74 |runtime.| Only t|
|00002aa0| 68 65 6e 20 69 73 20 74 | 68 65 20 63 6c 61 73 73 |hen is t|he class|
|00002ab0| 20 6f 66 20 74 68 65 20 | 69 74 65 6d 20 66 69 6e | of the |item fin|
|00002ac0| 61 6c 6c 79 20 6c 65 61 | 72 6e 65 64 20 62 61 73 |ally lea|rned bas|
|00002ad0| 65 64 20 6f 6e 20 74 68 | 65 20 76 61 6c 75 65 20 |ed on th|e value |
|00002ae0| 6f 66 20 74 68 65 20 76 | 61 72 69 61 62 6c 65 20 |of the v|ariable |
|00002af0| ff 00 16 18 01 f7 66 72 | 75 69 74 49 74 65 6d f9 |......fr|uitItem.|
|00002b00| 00 f7 ff 00 15 18 00 f7 | 20 61 74 20 74 68 61 74 |........| at that|
|00002b10| 20 74 69 6d 65 2e 0d 02 | 14 fc 00 60 02 a4 00 60 | time...|...`...`|
|00002b20| 00 0e 02 30 08 00 f7 ff | 00 15 18 02 f7 ff 00 15 |...0....|........|
|00002b30| 24 03 f7 42 65 6e 65 66 | 69 74 73 20 6f 66 20 44 |$..Benef|its of D|
|00002b40| 79 6e 61 6d 69 63 20 42 | 69 6e 64 69 6e 67 ff 00 |ynamic B|inding..|
|00002b50| 15 24 01 f7 0d ff 00 15 | 24 00 f7 fc 00 74 02 a4 |.$......|$....t..|
|00002b60| 00 74 02 0e 02 30 08 00 | f7 0d fc 00 8c 02 c4 00 |.t...0..|........|
|00002b70| 5e 00 0e 02 30 08 00 f7 | ff 00 15 18 00 f7 50 6f |^...0...|......Po|
|00002b80| 6c 79 6d 6f 72 70 68 69 | 73 6d 20 74 61 6b 65 73 |lymorphi|sm takes|
|00002b90| 20 6f 6e 20 67 72 65 61 | 74 65 72 20 6d 65 61 6e | on grea|ter mean|
|00002ba0| 69 6e 67 20 61 6e 64 20 | 75 73 65 66 75 6c 6e 65 |ing and |usefulne|
|00002bb0| 73 73 2e 0d fc 00 8c 02 | bb 00 5e 00 0e 02 30 08 |ss......|..^...0.|
|00002bc0| 00 f7 0d 44 ff 00 15 18 | 00 f7 65 76 65 6c 6f 70 |...D....|..evelop|
|00002bd0| 65 72 73 20 6f 66 20 70 | 72 6f 67 72 61 6d 73 20 |ers of p|rograms |
|00002be0| 63 61 6e 20 64 6f 20 72 | 61 70 69 64 20 70 72 6f |can do r|apid pro|
|00002bf0| 74 6f 74 79 70 65 73 20 | 61 6e 64 20 6e 6f 74 20 |totypes |and not |
|00002c00| 68 61 76 65 20 74 6f 20 | 61 6e 74 69 63 69 70 61 |have to |anticipa|
|00002c10| 74 65 20 65 76 65 72 79 | 20 66 75 74 75 72 65 20 |te every| future |
|00002c20| 74 79 70 65 20 6f 66 20 | 6f 62 6a 65 63 74 2e 0d |type of |object..|
|00002c30| 0d 50 72 6f 67 72 61 6d | 73 20 63 61 6e 20 62 65 |.Program|s can be|
|00002c40| 20 65 78 74 65 6e 73 69 | 62 6c 65 2c 20 64 79 6e | extensi|ble, dyn|
|00002c50| 61 6d 69 63 61 6c 6c 79 | 20 6c 6f 61 64 69 6e 67 |amically| loading|
|00002c60| 20 63 6f 64 65 20 6d 6f | 64 75 6c 65 73 20 61 74 | code mo|dules at|
|00002c70| 20 72 75 6e 74 69 6d 65 | 2e 0d 0d 54 68 65 20 66 | runtime|...The f|
|00002c80| 6c 65 78 69 62 69 6c 69 | 74 79 20 70 72 6f 76 69 |lexibili|ty provi|
|00002c90| 64 65 64 20 74 68 65 20 | 70 72 6f 67 72 61 6d 6d |ded the |programm|
|00002ca0| 65 72 20 6f 75 74 77 65 | 69 67 68 73 20 74 68 65 |er outwe|ighs the|
|00002cb0| 20 6c 6f 73 73 20 6f 66 | 20 65 66 66 69 63 69 65 | loss of| efficie|
|00002cc0| 6e 63 79 20 69 6e 20 74 | 68 65 20 72 75 6e 74 69 |ncy in t|he runti|
|00002cd0| 6d 65 20 73 79 73 74 65 | 6d 2e 0d 0d ff 00 15 18 |me syste|m.......|
|00002ce0| 03 f7 46 6c 65 78 69 62 | 69 6c 69 74 79 ff 00 15 |..Flexib|ility...|
|00002cf0| 18 02 f7 20 69 73 20 6d | 6f 72 65 20 69 6d 70 6f |... is m|ore impo|
|00002d00| 72 74 61 6e 74 20 61 74 | 20 68 69 67 68 65 72 20 |rtant at| higher |
|00002d10| 6c 65 76 65 6c 73 20 6f | 66 20 61 62 73 74 72 61 |levels o|f abstra|
|00002d20| 63 74 69 6f 6e 21 ff 00 | 15 18 03 f7 0d 02 20 fc |ction!..|...... .|
|00002d30| 00 6c 02 d1 00 6c 02 0e | 02 40 08 00 f7 ff 00 15 |.l...l..|.@......|
|00002d40| 28 01 f7 53 75 6d 6d 61 | 72 79 20 6f 66 20 4f 4f |(..Summa|ry of OO|
|00002d50| 50 f9 00 f7 ff 00 15 18 | 00 f7 0d fc 00 6c 02 d1 |P.......|.....l..|
|00002d60| 00 6c 00 0e 02 40 08 00 | f7 0d 31 2e 20 20 4f 62 |.l...@..|..1. Ob|
|00002d70| 6a 65 63 74 2d 6f 72 69 | 65 6e 74 65 64 20 70 72 |ject-ori|ented pr|
|00002d80| 6f 67 72 61 6d 6d 69 6e | 67 20 63 6f 6e 73 69 73 |ogrammin|g consis|
|00002d90| 74 73 20 6f 66 20 73 65 | 6e 64 69 6e 67 20 6d 65 |ts of se|nding me|
|00002da0| 73 73 61 67 65 73 20 74 | 6f 20 6f 62 6a 65 63 74 |ssages t|o object|
|00002db0| 73 2e 0d 0d 32 2e 20 20 | 50 72 6f 62 6c 65 6d 2d |s...2. |Problem-|
|00002dc0| 73 6f 6c 76 69 6e 67 20 | 63 6f 6e 73 69 73 74 73 |solving |consists|
|00002dd0| 20 6f 66 20 28 61 29 20 | 69 64 65 6e 74 69 66 79 | of (a) |identify|
|00002de0| 69 6e 67 20 74 68 65 20 | 6f 62 6a 65 63 74 73 2c |ing the |objects,|
|00002df0| 20 28 62 29 20 69 64 65 | 6e 74 69 66 79 69 6e 67 | (b) ide|ntifying|
|00002e00| 20 74 68 65 20 6d 65 73 | 73 61 67 65 73 20 61 73 | the mes|sages as|
|00002e10| 73 6f 63 69 61 74 65 64 | 20 77 69 74 68 20 74 68 |sociated| with th|
|00002e20| 65 20 6f 62 6a 65 63 74 | 73 2c 20 28 63 29 20 64 |e object|s, (c) d|
|00002e30| 65 76 65 6c 6f 70 69 6e | 67 20 74 68 65 20 73 65 |evelopin|g the se|
|00002e40| 71 75 65 6e 63 65 20 6f | 66 20 6d 65 73 73 61 67 |quence o|f messag|
|00002e50| 65 73 20 74 6f 20 6f 62 | 6a 65 63 74 73 20 74 68 |es to ob|jects th|
|00002e60| 61 74 20 73 6f 6c 76 65 | 73 20 74 68 65 20 70 72 |at solve|s the pr|
|00002e70| 6f 62 6c 65 6d 2e 0d 0d | 33 2e 20 20 4f 4f 50 20 |oblem...|3. OOP |
|00002e80| 6c 61 6e 67 75 61 67 65 | 73 20 67 65 6e 65 72 61 |language|s genera|
|00002e90| 6c 6c 79 20 73 75 70 70 | 6f 72 74 20 63 6c 61 73 |lly supp|ort clas|
|00002ea0| 73 65 73 20 6f 66 20 6f | 62 6a 65 63 74 73 2c 20 |ses of o|bjects, |
|00002eb0| 6d 65 73 73 61 67 69 6e | 67 2c 20 70 6f 6c 79 6d |messagin|g, polym|
|00002ec0| 6f 72 70 68 69 73 6d 2c | 20 69 6e 68 65 72 69 74 |orphism,| inherit|
|00002ed0| 61 6e 63 65 2c 20 61 6e | 64 20 28 70 72 65 66 65 |ance, an|d (prefe|
|00002ee0| 72 61 62 6c 79 29 20 64 | 79 6e 61 6d 69 63 20 62 |rably) d|ynamic b|
|00002ef0| 69 6e 64 69 6e 67 2e 0d | 0d 34 2e 20 20 54 68 65 |inding..|.4. The|
|00002f00| 20 75 6e 69 74 20 6f 66 | 20 65 6e 63 61 70 73 75 | unit of| encapsu|
|00002f10| 6c 61 74 69 6f 6e 20 69 | 73 20 74 68 65 20 6f 62 |lation i|s the ob|
|00002f20| 6a 65 63 74 2c 20 77 68 | 69 63 68 20 69 6e 63 6c |ject, wh|ich incl|
|00002f30| 75 64 65 73 20 70 72 69 | 76 61 74 65 20 64 61 74 |udes pri|vate dat|
|00002f40| 61 20 61 6e 64 20 6d 65 | 74 68 6f 64 73 2e 0d 00 |a and me|thods...|
|00002f50| 5e 00 60 00 00 00 01 00 | 70 6f 6f 86 c7 69 4d 79 |^.`.....|poo..iMy|
|00002f60| 01 c9 a4 02 a4 4a a0 7f | ee 59 2b f8 be b9 b9 23 |.....J..|.Y+....#|
|00002f70| 34 f8 aa 00 61 73 69 00 | 74 6e 69 c8 2a 23 d2 3a |4...asi.|tni.*#.:|
|00002f80| a6 b9 84 a2 b7 f6 ad 47 | ff 20 12 a4 3f 52 7b de |.......G|. ..?R{.|
|00002f90| 9b 20 f8 70 51 81 0f 64 | 64 75 62 6d a7 76 73 a4 |. .pQ..d|dubm.vs.|
|00002fa0| 72 b5 e2 db f9 65 10 74 | 69 6e 69 80 7f 3d b8 02 |r....e.t|ini..=..|
|00002fb0| 49 f5 f6 ff 00 15 30 01 | f7 57 68 61 74 20 69 73 |I.....0.|.What is|
|00002fc0| 20 61 6e 20 4f 62 6a 65 | 63 74 3f ff 00 15 24 01 | an Obje|ct?...$.|
|00002fd0| f7 0d fc 00 8e 02 a4 00 | 5d 00 0e 02 30 06 ec f7 |........|]...0...|
|00002fe0| ff 00 15 18 00 f7 0d fc | 00 69 02 d0 00 47 00 0e |........|.i...G..|
|00002ff0| 02 30 06 ec f7 41 6e 20 | ff 00 15 18 03 f7 6f 62 |.0...An |......ob|
|00003000| 6a 65 63 74 ff 00 15 18 | 00 f7 20 69 73 20 73 6f |ject....|.. is so|
|00003010| 6d 65 20 ff 00 15 18 03 | f7 70 72 69 76 61 74 65 |me .....|.private|
|00003020| 20 64 61 74 61 ff 00 15 | 18 00 f7 20 61 6e 64 20 | data...|... and |
|00003030| 61 20 73 65 74 20 6f 66 | 20 ff 00 15 18 03 f7 70 |a set of| ......p|
|00003040| 75 62 6c 69 63 20 6f 70 | 65 72 61 74 69 6f 6e 73 |ublic op|erations|
|00003050| ff 00 15 18 00 f7 20 74 | 68 61 74 20 63 61 6e 20 |...... t|hat can |
|00003060| 61 63 63 65 73 73 20 74 | 68 61 74 20 64 61 74 61 |access t|hat data|
|00003070| 2e 0d 0d 54 68 65 20 65 | 78 74 65 72 6e 61 6c 20 |...The e|xternal |
|00003080| 69 6e 74 65 72 66 61 63 | 65 20 74 6f 20 74 68 65 |interfac|e to the|
|00003090| 20 6f 62 6a 65 63 74 20 | 69 73 20 ff 00 15 18 03 | object |is .....|
|000030a0| f7 6f 6e 6c 79 ff 00 15 | 18 00 f7 20 74 68 72 6f |.only...|... thro|
|000030b0| 75 67 68 20 74 68 65 20 | 6f 70 65 72 61 74 69 6f |ugh the |operatio|
|000030c0| 6e 73 2e 0d 0d 41 6e 20 | 6f 62 6a 65 63 74 20 69 |ns...An |object i|
|000030d0| 73 20 72 65 71 75 65 73 | 74 65 64 20 74 6f 20 70 |s reques|ted to p|
|000030e0| 65 72 66 6f 72 6d 20 6f | 6e 65 20 6f 66 20 69 74 |erform o|ne of it|
|000030f0| 73 20 6f 70 65 72 61 74 | 69 6f 6e 73 20 62 79 20 |s operat|ions by |
|00003100| 73 65 6e 64 69 6e 67 20 | 69 74 20 61 20 ff 00 15 |sending |it a ...|
|00003110| 18 03 f7 6d 65 73 73 61 | 67 65 ff 00 15 18 00 f7 |...messa|ge......|
|00003120| 20 74 65 6c 6c 69 6e 67 | 20 74 68 65 20 6f 62 6a | telling| the obj|
|00003130| 65 63 74 20 77 68 61 74 | 20 74 6f 20 64 6f 2e 20 |ect what| to do. |
|00003140| 20 0d 0d 54 68 65 20 ff | 00 15 18 03 f7 72 65 63 | ..The .|.....rec|
|00003150| 65 69 76 65 72 ff 00 15 | 18 00 f7 20 72 65 73 70 |eiver...|... resp|
|00003160| 6f 6e 64 73 20 74 6f 20 | 74 68 65 20 6d 65 73 73 |onds to |the mess|
|00003170| 61 67 65 20 62 79 20 66 | 69 72 73 74 20 63 68 6f |age by f|irst cho|
|00003180| 6f 73 69 6e 67 20 74 68 | 65 20 6f 70 65 72 61 74 |osing th|e operat|
|00003190| 69 6f 6e 20 74 68 61 74 | 20 69 6d 70 6c 65 6d 65 |ion that| impleme|
|000031a0| 6e 74 73 20 74 68 65 20 | 6d 65 73 73 61 67 65 20 |nts the |message |
|000031b0| 6e 61 6d 65 2c 20 65 78 | 65 63 75 74 69 6e 67 20 |name, ex|ecuting |
|000031c0| 74 68 69 73 20 6f 70 65 | 72 61 74 69 6f 6e 2c 20 |this ope|ration, |
|000031d0| 61 6e 64 20 74 68 65 6e | 20 72 65 74 75 72 6e 69 |and then| returni|
|000031e0| 6e 67 20 63 6f 6e 74 72 | 6f 6c 20 74 6f 20 74 68 |ng contr|ol to th|
|000031f0| 65 20 63 61 6c 6c 65 72 | 2e 0d 01 85 fc 00 6c 02 |e caller|......l.|
|00003200| bb 00 6c 00 0d 01 74 07 | 08 08 cc 0a 1c f7 0d 49 |..l...t.|.......I|
|00003210| 4e 53 54 41 4e 43 45 20 | 56 41 52 49 41 42 4c 45 |NSTANCE |VARIABLE|
|00003220| 53 0d fc 00 6c 02 e9 00 | 6c 00 0d 01 74 07 08 08 |S...l...|l...t...|
|00003230| cc 0a 1c f7 ff 00 15 18 | 02 f7 49 6e 68 65 72 69 |........|..Inheri|
|00003240| 74 65 64 20 66 72 6f 6d | 20 4f 62 6a 65 63 74 f9 |ted from| Object.|
|00003250| 00 f7 ff 00 15 18 00 f7 | 09 43 6c 61 73 73 09 69 |........|.Class.i|
|00003260| 73 61 3b 0d ff 00 15 18 | 02 f7 49 6e 68 65 72 69 |sa;.....|..Inheri|
|00003270| 74 65 64 20 66 72 6f 6d | 20 46 72 75 69 74 ff 00 |ted from| Fruit..|
|00003280| 15 18 00 f7 09 69 6e 74 | 09 73 69 7a 65 3b 0d ff |.....int|.size;..|
|00003290| 00 15 18 02 f7 44 65 63 | 6c 61 72 65 64 20 69 6e |.....Dec|lared in|
|000032a0| 20 41 70 70 6c 65 ff 00 | 15 18 00 f7 09 63 68 61 | Apple..|.....cha|
|000032b0| 72 2a 09 63 6f 6c 6f 72 | 3b 0d 0d 4d 45 54 48 4f |r*.color|;..METHO|
|000032c0| 44 53 0d ff 00 15 18 02 | f7 49 6e 68 65 72 69 74 |DS......|.Inherit|
|000032d0| 65 64 20 66 72 6f 6d 20 | 4f 62 6a 65 63 74 09 ff |ed from |Object..|
|000032e0| 00 15 18 00 f7 2b 61 6c | 6c 6f 63 20 7b 20 2e 2e |.....+al|loc { ..|
|000032f0| 2e 20 7d 20 28 63 6c 61 | 73 73 20 6d 65 74 68 6f |. } (cla|ss metho|
|00003300| 64 29 0d 09 2d 69 6e 69 | 74 20 7b 20 2e 2e 2e 20 |d)..-ini|t { ... |
|00003310| 7d ff 00 15 18 02 f7 0d | 49 6e 68 65 72 69 74 65 |}.......|Inherite|
|00003320| 64 20 66 72 6f 6d 20 46 | 72 75 69 74 09 ff 00 15 |d from F|ruit....|
|00003330| 18 00 f7 2d 73 69 7a 65 | 20 7b 20 2e 2e 2e 20 7d |...-size| { ... }|
|00003340| 0d 09 2d 73 65 74 53 69 | 7a 65 3a 20 7b 20 2e 2e |..-setSi|ze: { ..|
|00003350| 2e 20 7d ff 00 15 18 02 | f7 0d 44 65 63 6c 61 72 |. }.....|..Declar|
|00003360| 65 64 20 69 6e 20 41 70 | 70 6c 65 09 ff 00 15 18 |ed in Ap|ple.....|
|00003370| 00 f7 2d 63 6f 6c 6f 72 | 20 7b 20 2e 2e 2e 20 7d |..-color| { ... }|
|00003380| 0d 02 18 fc 00 49 02 d0 | 00 49 02 0e 02 30 08 00 |.....I..|.I...0..|
|00003390| f7 ff 00 15 24 03 f7 f5 | ff 00 15 28 01 f7 52 65 |....$...|...(..Re|
|000033a0| 76 69 65 77 20 6f 66 20 | 4f 4f 50 20 50 72 6f 70 |view of |OOP Prop|
|000033b0| 65 72 74 69 65 73 0d ff | 00 15 18 01 f7 fc 00 74 |erties..|.......t|
|000033c0| 02 a4 00 74 00 0e 02 30 | 08 00 f7 0d fc 00 76 02 |...t...0|......v.|
|000033d0| d1 00 48 00 0e 02 40 08 | 00 f7 43 6c 61 73 73 65 |..H...@.|..Classe|
|000033e0| 73 20 6f 66 20 4f 62 6a | 65 63 74 73 20 ff 00 15 |s of Obj|ects ...|
|000033f0| 18 00 f7 2d 20 50 72 6f | 63 65 64 75 72 61 6c 20 |...- Pro|cedural |
|00003400| 61 6e 64 20 64 61 74 61 | 20 61 62 73 74 72 61 63 |and data| abstrac|
|00003410| 74 69 6f 6e 2c 20 65 6e | 63 61 70 73 75 6c 61 74 |tion, en|capsulat|
|00003420| 69 6f 6e 2c 20 64 61 74 | 61 20 73 65 63 75 72 69 |ion, dat|a securi|
|00003430| 74 79 2e 0d 0d ff 00 15 | 18 01 f7 4d 65 73 73 61 |ty......|...Messa|
|00003440| 67 69 6e 67 20 2d 20 ff | 00 15 18 00 f7 46 6c 65 |ging - .|.....Fle|
|00003450| 78 69 62 6c 65 20 63 6f | 6d 6d 75 6e 69 63 61 74 |xible co|mmunicat|
|00003460| 69 6f 6e 20 62 65 74 77 | 65 65 6e 20 6f 62 6a 65 |ion betw|een obje|
|00003470| 63 74 73 2c 20 77 69 74 | 68 20 65 6d 70 68 61 73 |cts, wit|h emphas|
|00003480| 69 73 20 6f 6e 20 74 68 | 65 20 64 61 74 61 20 72 |is on th|e data r|
|00003490| 61 74 68 65 72 20 74 68 | 61 6e 20 74 68 65 20 6f |ather th|an the o|
|000034a0| 70 65 72 61 74 69 6f 6e | 2e 0d ff 00 15 18 01 f7 |peration|........|
|000034b0| 0d 50 6f 6c 79 6d 6f 72 | 70 68 69 73 6d 20 ff 00 |.Polymor|phism ..|
|000034c0| 15 18 00 f7 2d 20 41 6c | 6c 6f 77 73 20 70 72 6f |....- Al|lows pro|
|000034d0| 67 72 61 6d 6d 69 6e 67 | 20 61 74 20 61 20 68 69 |gramming| at a hi|
|000034e0| 67 68 65 72 20 6c 65 76 | 65 6c 20 6f 66 20 61 62 |gher lev|el of ab|
|000034f0| 73 74 72 61 63 74 69 6f | 6e 2e ff 00 15 18 01 f7 |stractio|n.......|
|00003500| 0d 0d 49 6e 68 65 72 69 | 74 61 6e 63 65 20 2d 20 |..Inheri|tance - |
|00003510| ff 00 15 18 00 f7 4d 61 | 6b 65 73 20 69 74 20 65 |......Ma|kes it e|
|00003520| 61 73 79 20 74 6f 20 65 | 78 74 65 6e 64 20 61 6e |asy to e|xtend an|
|00003530| 64 20 72 65 75 73 65 20 | 6f 62 6a 65 63 74 73 2e |d reuse |objects.|
|00003540| 0d fc 00 76 02 d1 00 76 | 00 0e 02 40 08 00 f7 0d |...v...v|...@....|
|00003550| fc 00 76 02 d1 00 48 00 | 0e 02 40 08 00 f7 ff 00 |..v...H.|..@.....|
|00003560| 15 18 01 f7 44 79 6e 61 | 6d 69 63 20 42 69 6e 64 |....Dyna|mic Bind|
|00003570| 69 6e 67 20 2d 20 ff 00 | 15 18 00 f7 41 6c 6c 6f |ing - ..|....Allo|
|00003580| 77 73 20 66 6c 65 78 69 | 62 69 6c 69 74 79 20 61 |ws flexi|bility a|
|00003590| 74 20 72 75 6e 74 69 6d | 65 2e 0d 03 bf ff 00 15 |t runtim|e.......|
|000035a0| 30 01 f7 fc 00 45 02 d2 | 00 45 02 0e 02 30 08 00 |0....E..|.E...0..|
|000035b0| f7 f5 31 2e 20 20 43 6c | 61 73 73 65 73 20 6f 66 |..1. Cl|asses of|
|000035c0| 20 4f 62 6a 65 63 74 73 | 0d fc 00 5c 02 bb 00 5c | Objects|...\...\|
|000035d0| 02 0e 02 30 08 00 f7 ff | 00 15 18 00 f7 28 61 62 |...0....|.....(ab|
|000035e0| 73 74 72 61 63 74 69 6f | 6e 20 61 6e 64 20 65 6e |stractio|n and en|
|000035f0| 63 61 70 73 75 6c 61 74 | 69 6f 6e 29 ff 00 15 18 |capsulat|ion)....|
|00003600| 01 f7 0d fc 00 74 02 a4 | 00 5d 00 0e 02 30 08 00 |.....t..|.]...0..|
|00003610| f7 0d 0d fc 00 74 02 a4 | 00 74 00 0e 02 30 08 00 |.....t..|.t...0..|
|00003620| f7 41 62 73 74 72 61 63 | 74 69 6f 6e 3a ff 00 15 |.Abstrac|tion:...|
|00003630| 18 00 f7 0d fc 00 8c 02 | a4 00 74 00 0e 02 30 08 |........|..t...0.|
|00003640| 00 f7 0d fc 00 97 02 a4 | 00 97 00 0e 02 30 08 00 |........|.....0..|
|00003650| f7 41 6e 20 6f 62 6a 65 | 63 74 20 77 69 6c 6c 20 |.An obje|ct will |
|00003660| 62 65 20 64 65 66 69 6e | 65 64 20 61 73 20 61 20 |be defin|ed as a |
|00003670| 6d 65 6d 62 65 72 20 6f | 66 20 61 20 ff 00 15 18 |member o|f a ....|
|00003680| 03 f7 63 6c 61 73 73 ff | 00 15 18 00 f7 2e 0d 0d |..class.|........|
|00003690| 41 20 63 6c 61 73 73 20 | 69 73 20 61 6e 20 ff 00 |A class |is an ..|
|000036a0| 15 18 03 f7 61 62 73 74 | 72 61 63 74 69 6f 6e ff |....abst|raction.|
|000036b0| 00 15 18 00 f7 20 77 68 | 69 63 68 20 64 65 73 63 |..... wh|ich desc|
|000036c0| 72 69 62 65 73 20 74 68 | 65 20 70 72 6f 70 65 72 |ribes th|e proper|
|000036d0| 74 69 65 73 20 73 68 61 | 72 65 64 20 62 79 20 61 |ties sha|red by a|
|000036e0| 20 67 72 6f 75 70 20 6f | 66 20 73 69 6d 69 6c 61 | group o|f simila|
|000036f0| 72 20 6f 62 6a 65 63 74 | 73 2e 0d 0d 41 6e 20 ff |r object|s...An .|
|00003700| 00 15 18 03 f7 69 6e 73 | 74 61 6e 63 65 ff 00 15 |.....ins|tance...|
|00003710| 18 00 f7 20 6f 66 20 61 | 20 63 6c 61 73 73 20 69 |... of a| class i|
|00003720| 73 20 61 6e 20 69 6e 64 | 69 76 69 64 75 61 6c 20 |s an ind|ividual |
|00003730| 6f 63 63 75 72 72 65 6e | 63 65 20 6f 66 20 61 6e |occurren|ce of an|
|00003740| 20 6f 62 6a 65 63 74 2e | 0d 0d fc 00 74 02 a4 00 | object.|....t...|
|00003750| 74 00 0e 02 30 08 00 f7 | ff 00 15 18 01 f7 0d 45 |t...0...|.......E|
|00003760| 6e 63 61 70 73 75 6c 61 | 74 69 6f 6e 3a ff 00 15 |ncapsula|tion:...|
|00003770| 18 00 f7 0d fc 00 97 02 | a4 00 97 00 0e 02 30 08 |........|......0.|
|00003780| 00 f7 0d 41 20 63 6c 61 | 73 73 20 65 6e 63 61 70 |...A cla|ss encap|
|00003790| 73 75 6c 61 74 65 73 20 | 69 6e 20 61 20 73 69 6e |sulates |in a sin|
|000037a0| 67 6c 65 20 6f 62 6a 65 | 63 74 20 62 6f 74 68 20 |gle obje|ct both |
|000037b0| 64 61 74 61 20 61 6e 64 | 20 70 72 6f 63 65 64 75 |data and| procedu|
|000037c0| 72 61 6c 20 61 62 73 74 | 72 61 63 74 69 6f 6e 2c |ral abst|raction,|
|000037d0| 20 73 74 61 74 65 20 61 | 6e 64 20 62 65 68 61 76 | state a|nd behav|
|000037e0| 69 6f 72 2e 0d ff 00 15 | 18 02 f7 ff 00 15 18 00 |ior.....|........|
|000037f0| f7 0d 45 6e 63 61 70 73 | 75 6c 61 74 69 6f 6e 20 |..Encaps|ulation |
|00003800| 69 73 20 64 6f 6e 65 20 | 74 6f 20 73 65 70 61 72 |is done |to separ|
|00003810| 61 74 65 20 74 68 65 20 | 75 73 65 72 20 6f 66 20 |ate the |user of |
|00003820| 61 6e 20 6f 62 6a 65 63 | 74 20 66 72 6f 6d 20 69 |an objec|t from i|
|00003830| 74 73 20 61 75 74 68 6f | 72 2e 0d 0d 54 68 65 20 |ts autho|r...The |
|00003840| 6f 62 6a 65 63 74 20 69 | 73 20 64 65 66 69 6e 65 |object i|s define|
|00003850| 64 20 62 79 20 69 74 73 | 20 ff 00 15 18 03 f7 62 |d by its| ......b|
|00003860| 65 68 61 76 69 6f 72 ff | 00 15 18 00 f7 2c 20 74 |ehavior.|....., t|
|00003870| 68 65 20 ff 00 15 18 03 | f7 70 75 62 6c 69 63 ff |he .....|.public.|
|00003880| 00 15 18 02 f7 20 ff 00 | 15 18 03 f7 6f 70 65 72 |..... ..|....oper|
|00003890| 61 74 69 6f 6e 73 ff 00 | 15 18 00 f7 20 69 74 20 |ations..|.... it |
|000038a0| 63 61 6e 20 70 65 72 66 | 6f 72 6d 2e 20 20 54 68 |can perf|orm. Th|
|000038b0| 65 20 ff 00 15 18 03 f7 | 64 61 74 61 20 72 65 6d |e ......|data rem|
|000038c0| 61 69 6e 73 20 70 72 69 | 76 61 74 65 ff 00 15 18 |ains pri|vate....|
|000038d0| 00 f7 20 74 6f 20 74 68 | 65 20 6f 62 6a 65 63 74 |.. to th|e object|
|000038e0| 2e 0d 0d 55 73 65 72 73 | 20 6f 66 20 74 68 65 73 |...Users| of thes|
|000038f0| 65 20 6f 62 6a 65 63 74 | 73 20 63 61 6e 20 61 63 |e object|s can ac|
|00003900| 63 65 73 73 20 74 68 65 | 20 6f 62 6a 65 63 74 27 |cess the| object'|
|00003910| 73 20 64 61 74 61 20 ff | 00 15 18 03 f7 6f 6e 6c |s data .|.....onl|
|00003920| 79 ff 00 15 18 00 f7 20 | 75 73 69 6e 67 20 74 68 |y...... |using th|
|00003930| 65 20 70 72 6f 63 65 64 | 75 72 65 73 20 74 68 65 |e proced|ures the|
|00003940| 20 6f 62 6a 65 63 74 20 | 64 65 76 65 6c 6f 70 65 | object |develope|
|00003950| 72 20 70 72 6f 76 69 64 | 65 73 2e 0d 02 14 fc 00 |r provid|es......|
|00003960| 74 02 a4 00 74 00 0e 02 | 30 08 00 f7 ff 00 15 18 |t...t...|0.......|
|00003970| 00 f7 0d fc 00 74 02 a4 | 00 74 02 0e 02 30 08 00 |.....t..|.t...0..|
|00003980| f7 ff 00 15 18 00 f7 ff | 00 15 30 01 f7 49 6e 68 |........|..0..Inh|
|00003990| 65 72 69 74 61 6e 63 65 | ff 00 15 18 00 f7 20 28 |eritance|...... (|
|000039a0| 63 6f 6e 74 69 6e 75 65 | 64 29 0d fc 00 74 02 a4 |continue|d)...t..|
|000039b0| 00 74 00 0e 02 30 08 00 | f7 0d 0d fc 00 86 02 bc |.t...0..|........|
|000039c0| 00 6c 00 0e 02 b4 08 00 | f7 57 68 65 6e 20 61 20 |.l......|.When a |
|000039d0| 63 6c 61 73 73 20 6f 62 | 6a 65 63 74 20 63 72 65 |class ob|ject cre|
|000039e0| 61 74 65 73 20 61 20 6e | 65 77 20 ff 00 15 18 02 |ates a n|ew .....|
|000039f0| f7 69 6e 73 74 61 6e 63 | 65 ff 00 15 18 00 f7 2c |.instanc|e......,|
|00003a00| 20 74 68 65 20 6e 65 77 | 20 6f 62 6a 65 63 74 20 | the new| object |
|00003a10| 68 61 73 20 74 68 65 20 | ff 00 15 18 03 f7 69 6e |has the |......in|
|00003a20| 73 74 61 6e 63 65 20 6d | 65 74 68 6f 64 73 ff 00 |stance m|ethods..|
|00003a30| 15 18 00 f7 20 61 6e 64 | 20 ff 00 15 18 03 f7 69 |.... and| ......i|
|00003a40| 6e 73 74 61 6e 63 65 20 | 76 61 72 69 61 62 6c 65 |nstance |variable|
|00003a50| 73 ff 00 15 18 00 f7 20 | 64 65 66 69 6e 65 64 20 |s...... |defined |
|00003a60| 66 6f 72 20 69 74 73 20 | 73 75 70 65 72 63 6c 61 |for its |supercla|
|00003a70| 73 73 2c 20 69 74 73 20 | 73 75 70 65 72 63 6c 61 |ss, its |supercla|
|00003a80| 73 73 27 20 73 75 70 65 | 72 63 6c 61 73 73 2c 20 |ss' supe|rclass, |
|00003a90| 2e 2e 2e 20 74 6f 20 74 | 68 65 20 72 6f 6f 74 20 |... to t|he root |
|00003aa0| ff 00 15 18 03 f7 4f 62 | 6a 65 63 74 ff 00 15 18 |......Ob|ject....|
|00003ab0| 00 f7 20 63 6c 61 73 73 | 20 28 ff 00 15 18 02 f7 |.. class| (......|
|00003ac0| 4f 62 6a 65 63 74 69 76 | 65 2d 43 ff 00 15 18 00 |Objectiv|e-C.....|
|00003ad0| f7 29 2e 0d fc 00 96 02 | bc 00 65 00 0e 02 30 08 |.)......|..e...0.|
|00003ae0| 00 f7 0d 0d fc 00 86 02 | bc 00 6c 00 0e 02 b4 08 |........|..l.....|
|00003af0| 00 f7 48 6f 77 65 76 65 | 72 2c 20 61 20 ff 00 15 |..Howeve|r, a ...|
|00003b00| 18 02 f7 63 6c 61 73 73 | 20 6f 62 6a 65 63 74 ff |...class| object.|
|00003b10| 00 15 18 00 f7 20 69 74 | 73 65 6c 66 20 69 6e 68 |..... it|self inh|
|00003b20| 65 72 69 74 73 20 6f 6e | 6c 79 20 74 68 65 20 ff |erits on|ly the .|
|00003b30| 00 15 18 03 f7 63 6c 61 | 73 73 ff 00 15 18 03 f7 |.....cla|ss......|
|00003b40| 20 6d 65 74 68 6f 64 73 | ff 00 15 18 00 f7 20 66 | methods|...... f|
|00003b50| 72 6f 6d 20 69 74 73 20 | 61 6e 63 65 73 74 6f 72 |rom its |ancestor|
|00003b60| 73 2e 0d fc 00 96 02 bc | 00 65 00 0e 02 30 08 00 |s.......|.e...0..|
|00003b70| f7 0d 00 77 fc 00 6c 02 | bb 00 6c 00 0d 01 74 07 |...w..l.|..l...t.|
|00003b80| 08 08 cc 0a 1c f7 ff 00 | 15 1c 03 f7 ff 00 15 1c |........|........|
|00003b90| 03 f7 41 70 70 6c 65 20 | ff 00 15 1c 02 f7 28 69 |..Apple |......(i|
|00003ba0| 6e 20 4f 62 6a 65 63 74 | 69 76 65 2d 43 29 ff 00 |n Object|ive-C)..|
|00003bb0| 15 12 01 f7 0d fc 00 6c | 02 e9 00 6c 00 0d 01 74 |.......l|...l...t|
|00003bc0| 07 08 08 cc 0a 1c f7 ff | 00 15 18 00 f7 0d 49 4e |........|......IN|
|00003bd0| 48 45 52 49 54 53 20 46 | 52 4f 4d 09 46 72 75 69 |HERITS F|ROM.Frui|
|00003be0| 74 20 3a 20 4f 62 6a 65 | 63 74 0d 00 4c fc 00 76 |t : Obje|ct..L..v|
|00003bf0| 02 a4 00 76 02 0e 02 9c | 07 80 f7 ff 00 15 24 01 |...v....|......$.|
|00003c00| f7 4f 62 6a 65 63 74 73 | 20 69 6e 20 4d 65 6d 6f |.Objects| in Memo|
|00003c10| 72 79 0d ff 00 15 24 00 | f7 28 ff 00 15 24 02 f7 |ry....$.|.(...$..|
|00003c20| 4f 62 6a 65 63 74 69 76 | 65 2d 43 ff 00 15 24 00 |Objectiv|e-C...$.|
|00003c30| f7 29 ff 00 15 24 01 f7 | 0d 01 29 ff 00 15 30 01 |.)...$..|..)...0.|
|00003c40| f7 f5 50 72 6f 70 65 72 | 74 69 65 73 20 6f 66 20 |..Proper|ties of |
|00003c50| 4f 4f 50 0d ff 00 15 12 | 01 f7 0d fc 00 8c 02 d2 |OOP.....|........|
|00003c60| 00 8c 00 0e 02 30 02 d0 | 08 00 f7 ff 00 15 18 03 |.....0..|........|
|00003c70| f7 31 29 09 43 6c 61 73 | 73 65 73 20 6f 66 20 4f |.1).Clas|ses of O|
|00003c80| 62 6a 65 63 74 73 0d 0d | 32 29 09 4d 65 73 73 61 |bjects..|2).Messa|
|00003c90| 67 69 6e 67 20 0d 0d 33 | 29 09 50 6f 6c 79 6d 6f |ging ..3|).Polymo|
|00003ca0| 72 70 68 69 73 6d 0d 0d | 34 29 09 49 6e 68 65 72 |rphism..|4).Inher|
|00003cb0| 69 74 61 6e 63 65 0d 0d | 35 29 09 44 79 6e 61 6d |itance..|5).Dynam|
|00003cc0| 69 63 20 42 69 6e 64 69 | 6e 67 0d 0d fc 00 7f 02 |ic Bindi|ng......|
|00003cd0| d2 00 7f 00 0e 02 30 02 | d0 08 00 f7 ff 00 15 18 |......0.|........|
|00003ce0| 02 f7 54 68 65 73 65 20 | 62 61 73 69 63 20 70 72 |..These |basic pr|
|00003cf0| 6f 70 65 72 74 69 65 73 | 20 61 72 65 20 6c 61 6e |operties| are lan|
|00003d00| 67 75 61 67 65 20 69 6e | 64 65 70 65 6e 64 65 6e |guage in|dependen|
|00003d10| 74 2e 20 20 48 6f 77 65 | 76 65 72 2c 20 69 6e 20 |t. Howe|ver, in |
|00003d20| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 73 65 |the foll|owing se|
|00003d30| 63 74 69 6f 6e 73 2c 20 | 73 70 65 63 69 66 69 63 |ctions, |specific|
|00003d40| 73 20 61 72 65 20 64 72 | 61 77 6e 20 66 72 6f 6d |s are dr|awn from|
|00003d50| 20 4f 62 6a 65 63 74 69 | 76 65 2d 43 2e ff 00 14 | Objecti|ve-C....|
|00003d60| 18 00 f7 0d 01 c0 ff 00 | 15 24 03 f7 4d 65 73 73 |........|.$..Mess|
|00003d70| 61 67 69 6e 67 20 76 73 | 2e 20 43 61 6c 6c 69 6e |aging vs|. Callin|
|00003d80| 67 0d f9 00 f7 ff 00 16 | 18 01 f7 0d ff 00 15 18 |g.......|........|
|00003d90| 00 f7 41 20 6d 65 73 73 | 61 67 65 20 69 73 20 65 |..A mess|age is e|
|00003da0| 73 73 65 6e 74 69 61 6c | 6c 79 20 61 20 66 75 6e |ssential|ly a fun|
|00003db0| 63 74 69 6f 6e 20 63 61 | 6c 6c ff 00 15 18 00 f7 |ction ca|ll......|
|00003dc0| 2c 20 62 75 74 20 74 68 | 65 20 ff 00 15 18 02 f7 |, but th|e ......|
|00003dd0| 65 6d 70 68 61 73 69 73 | ff 00 15 18 00 f7 20 69 |emphasis|...... i|
|00003de0| 73 20 6f 6e 20 74 68 65 | 20 64 61 74 61 20 69 74 |s on the| data it|
|00003df0| 73 65 6c 66 20 72 61 74 | 68 65 72 20 74 68 61 6e |self rat|her than|
|00003e00| 20 74 68 65 20 6f 70 65 | 72 61 74 69 6f 6e 2e 20 | the ope|ration. |
|00003e10| 20 46 6f 72 20 65 78 61 | 6d 70 6c 65 3a 0d 0d 09 | For exa|mple:...|
|00003e20| 4d 65 73 73 61 67 65 20 | 61 20 73 74 61 63 6b 20 |Message |a stack |
|00003e30| 74 6f 20 70 75 73 68 20 | 61 20 64 61 74 61 20 76 |to push |a data v|
|00003e40| 61 6c 75 65 20 6f 6e 74 | 6f 20 69 74 73 65 6c 66 |alue ont|o itself|
|00003e50| 3a 0d f9 00 f7 ff 00 16 | 18 01 f7 0d fc 00 74 02 |:.......|......t.|
|00003e60| a4 00 74 00 0e 02 a4 08 | 00 f7 09 5b 6d 79 53 74 |..t.....|...[mySt|
|00003e70| 61 63 6b 20 70 75 73 68 | 3a 76 61 6c 75 65 5d 3b |ack push|:value];|
|00003e80| 0d f9 00 f7 fc 00 74 02 | a4 00 74 00 0e 02 30 08 |......t.|..t...0.|
|00003e90| 00 f7 0d ff 00 15 18 00 | f7 69 6e 73 74 65 61 64 |........|.instead|
|00003ea0| 20 6f 66 20 2e 2e 2e 0d | f9 00 f7 ff 00 16 18 01 | of ....|........|
|00003eb0| f7 0d ff 00 15 18 00 f7 | 09 43 61 6c 6c 20 61 20 |........|.Call a |
|00003ec0| 70 75 73 68 20 72 6f 75 | 74 69 6e 65 2c 20 77 69 |push rou|tine, wi|
|00003ed0| 74 68 20 61 20 73 74 61 | 63 6b 20 61 6e 64 20 64 |th a sta|ck and d|
|00003ee0| 61 74 61 20 76 61 6c 75 | 65 20 61 73 20 61 72 67 |ata valu|e as arg|
|00003ef0| 75 6d 65 6e 74 73 3a 0d | f9 00 f7 ff 00 16 18 01 |uments:.|........|
|00003f00| f7 0d fc 00 74 02 a4 00 | 74 00 0e 02 a4 08 00 f7 |....t...|t.......|
|00003f10| 09 70 75 73 68 28 6d 79 | 53 74 61 63 6b 2c 76 61 |.push(my|Stack,va|
|00003f20| 6c 75 65 29 3b 0d 01 34 | ff 00 15 30 01 f7 34 2e |lue);..4|...0..4.|
|00003f30| 20 20 49 6e 68 65 72 69 | 74 61 6e 63 65 ff 00 15 | Inheri|tance...|
|00003f40| 12 00 f7 0d fc 00 74 02 | a4 00 74 00 0e 02 30 08 |......t.|..t...0.|
|00003f50| 00 f7 0d ff 00 15 18 00 | f7 0d fc 00 8c 02 bc 00 |........|........|
|00003f60| 5c 00 0e 02 30 08 00 f7 | ff 00 15 18 01 f7 46 69 |\...0...|......Fi|
|00003f70| 72 73 74 2c 20 61 73 20 | 6f ff 00 15 18 01 f7 62 |rst, as |o......b|
|00003f80| 6a 65 63 74 73 20 69 6e | 20 61 20 63 6c 61 73 73 |jects in| a class|
|00003f90| 3a ff 00 15 18 00 f7 0d | 0d fc 00 8c 02 bc 00 6c |:.......|.......l|
|00003fa0| 00 0e 02 30 08 00 f7 4f | 62 6a 65 63 74 73 20 61 |...0...O|bjects a|
|00003fb0| 72 65 20 61 6c 77 61 79 | 73 20 64 65 66 69 6e 65 |re alway|s define|
|00003fc0| 64 20 61 73 20 6d 65 6d | 62 65 72 73 20 6f 66 20 |d as mem|bers of |
|00003fd0| 61 20 ff 00 15 18 03 f7 | 63 6c 61 73 73 ff 00 15 |a ......|class...|
|00003fe0| 18 00 f7 2e 0d 0d 41 6e | 20 69 6e 73 74 61 6e 63 |......An| instanc|
|00003ff0| 65 20 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 20 |e automa|tically |
|00004000| 68 61 73 20 74 68 65 20 | 69 6e 73 74 61 6e 63 65 |has the |instance|
|00004010| 20 76 61 72 69 61 62 6c | 65 73 20 61 6e 64 20 6d | variabl|es and m|
|00004020| 65 74 68 6f 64 73 20 64 | 65 66 69 6e 65 64 20 66 |ethods d|efined f|
|00004030| 6f 72 20 69 74 73 20 63 | 6c 61 73 73 2e 20 20 54 |or its c|lass. T|
|00004040| 68 69 73 20 69 73 20 62 | 61 73 69 63 20 65 6e 63 |his is b|asic enc|
|00004050| 61 70 73 75 6c 61 74 69 | 6f 6e 2e 0d 02 98 fc 00 |apsulati|on......|
|00004060| 74 02 a4 00 5e 02 0e 02 | 30 08 00 f7 0d fc 00 74 |t...^...|0......t|
|00004070| 02 a4 00 49 00 0e 02 30 | 08 00 f7 ff 00 15 24 03 |...I...0|......$.|
|00004080| f7 42 65 6e 65 66 69 74 | 73 20 6f 66 20 49 6e 68 |.Benefit|s of Inh|
|00004090| 65 72 69 74 61 6e 63 65 | ff 00 15 12 03 f7 0d fc |eritance|........|
|000040a0| 00 74 02 a4 00 74 00 0e | 02 30 08 00 f7 ff 00 15 |.t...t..|.0......|
|000040b0| 12 00 f7 0d fc 00 5f 02 | cf 00 49 00 0e 02 30 08 |......_.|..I...0.|
|000040c0| 00 f7 ff 00 15 18 00 f7 | 49 6e 68 65 72 69 74 61 |........|Inherita|
|000040d0| 6e 63 65 20 70 72 6f 76 | 69 64 65 73 20 61 6e 20 |nce prov|ides an |
|000040e0| 65 78 70 6c 69 63 69 74 | 20 65 78 70 72 65 73 73 |explicit| express|
|000040f0| 69 6f 6e 20 6f 66 20 ff | 00 15 18 03 f7 63 6f 6d |ion of .|.....com|
|00004100| 6d 6f 6e 61 6c 69 74 79 | ff 00 15 18 00 f7 2e 0d |monality|........|
|00004110| 0d fc 00 5f 02 cf 00 49 | 00 0e 03 08 04 00 08 00 |..._...I|........|
|00004120| f7 57 65 20 77 69 6c 6c | 20 73 70 65 63 69 66 79 |.We will| specify|
|00004130| 20 63 6f 6d 6d 6f 6e 20 | 61 74 74 72 69 62 75 74 | common |attribut|
|00004140| 65 73 20 61 6e 64 20 73 | 65 72 76 69 63 65 73 20 |es and s|ervices |
|00004150| ff 00 15 18 03 f7 6f 6e | 63 65 ff 00 15 18 00 f7 |......on|ce......|
|00004160| 2c 20 61 6e 64 20 61 6c | 6c 6f 77 20 74 68 65 6d |, and al|low them|
|00004170| 20 74 6f 20 62 65 20 69 | 6e 68 65 72 69 74 65 64 | to be i|nherited|
|00004180| 20 62 79 20 6e 65 77 6c | 79 2d 64 65 66 69 6e 65 | by newl|y-define|
|00004190| 64 20 6f 62 6a 65 63 74 | 73 2e 0d fc 00 5f 02 cf |d object|s...._..|
|000041a0| 00 49 00 0e 02 30 08 00 | f7 0d 41 6c 6d 6f 73 74 |.I...0..|..Almost|
|000041b0| 20 6e 65 76 65 72 20 73 | 74 61 72 74 20 66 72 6f | never s|tart fro|
|000041c0| 6d 20 73 63 72 61 74 63 | 68 20 77 68 65 6e 20 62 |m scratc|h when b|
|000041d0| 75 69 6c 64 69 6e 67 20 | 61 20 6e 65 77 20 6f 62 |uilding |a new ob|
|000041e0| 6a 65 63 74 3a 20 20 49 | 74 20 69 73 20 65 61 73 |ject: I|t is eas|
|000041f0| 79 20 74 6f 20 64 65 66 | 69 6e 65 20 61 20 6e 65 |y to def|ine a ne|
|00004200| 77 20 6f 62 6a 65 63 74 | 20 74 68 61 74 20 69 73 |w object| that is|
|00004210| 20 6a 75 73 74 20 6c 69 | 6b 65 20 61 6e 20 6f 6c | just li|ke an ol|
|00004220| 64 20 6f 62 6a 65 63 74 | 20 65 78 63 65 70 74 20 |d object| except |
|00004230| 66 6f 72 20 61 20 66 65 | 77 20 6d 69 6e 6f 72 20 |for a fe|w minor |
|00004240| 64 69 66 66 65 72 65 6e | 63 65 73 2e 0d 0d 50 72 |differen|ces...Pr|
|00004250| 69 6e 63 69 70 61 6c 20 | 66 61 63 74 6f 72 20 69 |incipal |factor i|
|00004260| 6e 20 65 6e 68 61 6e 63 | 69 6e 67 20 74 68 65 20 |n enhanc|ing the |
|00004270| ff 00 15 18 03 f7 72 65 | 75 73 61 62 69 6c 69 74 |......re|usabilit|
|00004280| 79 ff 00 15 18 00 f7 20 | 6f 66 20 6f 62 6a 65 63 |y...... |of objec|
|00004290| 74 73 2e 0d 0d 4c 61 6e | 67 75 61 67 65 73 20 77 |ts...Lan|guages w|
|000042a0| 69 74 68 20 6f 62 6a 65 | 63 74 73 20 62 75 74 20 |ith obje|cts but |
|000042b0| 77 69 74 68 6f 75 74 20 | 69 6e 68 65 72 69 74 61 |without |inherita|
|000042c0| 6e 63 65 20 61 72 65 20 | 63 61 6c 6c 65 64 20 ff |nce are |called .|
|000042d0| 00 15 18 02 f7 22 6f 62 | 6a 65 63 74 2d 62 61 73 |....."ob|ject-bas|
|000042e0| 65 64 2c 22 ff 00 15 18 | 00 f7 20 65 2e 67 2e 2c |ed,"....|.. e.g.,|
|000042f0| 20 41 44 41 2e 0d 00 42 | 04 00 02 00 00 4c 04 00 | ADA...B|.....L..|
|00004300| 02 06 00 4c 24 00 0b 19 | 00 3b 24 00 18 da 00 3f |...L$...|.;$....?|
|00004310| 24 00 14 fa 00 3b 04 00 | 0a 49 00 3f 04 00 0a 60 |$....;..|.I.?...`|
|00004320| 00 3f 04 00 0a 70 00 3f | 04 00 0a 7e 00 3f 04 00 |.?...p.?|...~.?..|
|00004330| 0a 98 00 3f 04 00 25 be | 00 3f 00 2c 0d 0d 0d ff |...?..%.|.?.,....|
|00004340| 00 15 30 03 f7 4f 62 6a | 65 63 74 2d 4f 72 69 65 |..0..Obj|ect-Orie|
|00004350| 6e 74 65 64 0d 50 72 6f | 67 72 61 6d 6d 69 6e 67 |nted.Pro|gramming|
|00004360| ff 00 15 1c 01 f7 0d 0d | 01 92 64 00 15 19 00 21 |........|..d....!|
|00004370| 25 00 43 3a 00 f6 0c 00 | 0e fd 00 21 74 00 2f af |%.C:....|...!t./.|
|00004380| 00 39 a6 00 0b 19 00 00 | a7 00 18 da 01 64 7c 00 |.9......|.....d|.|
|00004390| 15 ac 01 87 74 00 3c 39 | 00 39 a6 00 14 fa 01 7e |....t.<9|.9.....~|
|000043a0| 7c 00 35 9b 00 39 a6 00 | 0a 49 03 37 7d 00 16 df ||.5..9..|.I.7}...|
|000043b0| 01 60 6c 00 17 14 00 53 | 7c 00 17 ac 01 25 6d 00 |.`l....S||....%m.|
|000043c0| 02 0c 01 69 6c 00 02 43 | 00 39 7c 00 0f 00 01 9c |...il..C|.9|.....|
|000043d0| 7c 00 0d 3e 01 8d 34 00 | 08 5e 00 53 0d 00 06 9c ||..>..4.|.^.S....|
|000043e0| 01 55 7c 00 05 4d 01 54 | 7c 00 18 ec 00 39 a6 00 |.U|..M.T||....9..|
|000043f0| 0a 60 01 64 7c 00 1e 03 | 01 b7 74 00 3d 64 01 b2 |.`.d|...|..t.=d..|
|00004400| 7c 00 26 77 01 b4 7c 00 | 08 e1 01 8b 3c 00 0c a6 ||.&w..|.|....<...|
|00004410| 00 37 4d 00 0d 0e 01 73 | 7c 00 3f 26 01 28 7c 00 |.7M....s||.?&.(|.|
|00004420| 06 bf 00 f7 7c 00 25 de | 00 54 6d 00 08 19 01 46 |....|.%.|.Tm....F|
|00004430| 74 00 39 5c 01 82 7c 00 | 0b 3f 01 2e 7d 00 26 1a |t.9\..|.|.?..}.&.|
|00004440| 00 1c 0c 00 26 74 00 1b | 4d 00 07 ea 01 56 75 00 |....&t..|M....Vu.|
|00004450| 3b 72 00 57 64 00 31 fa | 01 44 0d 00 10 b5 00 1b |;r.Wd.1.|.D......|
|00004460| 6d 00 10 c4 01 b4 74 00 | 3b eb 00 56 4d 00 11 0b |m.....t.|;..VM...|
|00004470| 00 2b 64 00 11 1c 01 15 | 7c 00 12 8c 01 5c 7c 00 |.+d.....||....\|.|
|00004480| 14 38 00 2b 2d 00 14 92 | 01 95 74 00 40 5c 01 b0 |.8.+-...|..t.@\..|
|00004490| 7c 00 1f 77 00 1b a6 00 | 0a 70 00 2b a6 00 0a 7e ||..w....|.p.+...~|
|000044a0| 01 7c 7c 00 02 b5 00 de | 6d 00 03 a8 01 af 7c 00 |.||.....|m.....|.|
|000044b0| 04 88 00 b3 7d 00 0a ac | 01 a7 7c 00 21 2a 00 39 |....}...|..|.!*.9|
|000044c0| a6 00 0a 98 01 7f 7c 00 | 28 a4 01 91 7c 00 23 4a |......|.|(...|.#J|
|000044d0| 00 37 4d 00 14 bf 01 85 | 7c 00 2b 17 01 b6 74 00 |.7M.....||.+...t.|
|000044e0| 33 81 00 2f a6 00 25 be | 01 68 7c 00 2d 2d 01 c4 |3../..%.|.h|.--..|
|000044f0| 7c 00 23 c6 01 73 7c 00 | 1a 83 01 bb 02 b7 fc 00 ||.#..s|.|........|
|00004500| 74 02 a4 00 5e 02 0e 02 | 30 08 00 f7 0d fc 00 74 |t...^...|0......t|
|00004510| 02 a4 00 49 00 0e 02 30 | 08 00 f7 ff 00 15 24 03 |...I...0|......$.|
|00004520| f7 42 65 6e 65 66 69 74 | 73 20 6f 66 20 49 6e 68 |.Benefit|s of Inh|
|00004530| 65 72 69 74 61 6e 63 65 | ff 00 15 12 03 f7 0d fc |eritance|........|
|00004540| 00 74 02 a4 00 74 00 0e | 02 30 08 00 f7 ff 00 15 |.t...t..|.0......|
|00004550| 12 00 f7 0d fc 00 5f 02 | cf 00 49 00 0e 02 30 08 |......_.|..I...0.|
|00004560| 00 f7 ff 00 15 18 00 f7 | 49 6e 68 65 72 69 74 61 |........|Inherita|
|00004570| 6e 63 65 20 70 72 6f 76 | 69 64 65 73 20 61 6e 20 |nce prov|ides an |
|00004580| 65 78 70 6c 69 63 69 74 | 20 65 78 70 72 65 73 73 |explicit| express|
|00004590| 69 6f 6e 20 6f 66 20 ff | 00 15 18 03 f7 63 6f 6d |ion of .|.....com|
|000045a0| 6d 6f 6e 61 6c 69 74 79 | ff 00 15 18 00 f7 2e 0d |monality|........|
|000045b0| 0d fc 00 5f 02 cf 00 49 | 00 0e 03 08 04 00 08 00 |..._...I|........|
|000045c0| f7 57 65 20 77 69 6c 6c | 20 73 70 65 63 69 66 79 |.We will| specify|
|000045d0| 20 63 6f 6d 6d 6f 6e 20 | 61 74 74 72 69 62 75 74 | common |attribut|
|000045e0| 65 73 20 61 6e 64 20 73 | 65 72 76 69 63 65 73 20 |es and s|ervices |
|000045f0| ff 00 15 18 03 f7 6f 6e | 63 65 ff 00 15 18 00 f7 |......on|ce......|
|00004600| 2c 20 61 6e 64 20 61 6c | 6c 6f 77 20 74 68 65 6d |, and al|low them|
|00004610| 20 74 6f 20 62 65 20 69 | 6e 68 65 72 69 74 65 64 | to be i|nherited|
|00004620| 20 62 79 20 6e 65 77 6c | 79 2d 64 65 66 69 6e 65 | by newl|y-define|
|00004630| 64 20 6f 62 6a 65 63 74 | 73 2e 0d fc 00 5f 02 cf |d object|s...._..|
|00004640| 00 49 00 0e 02 30 08 00 | f7 0d 41 6c 6d 6f 73 74 |.I...0..|..Almost|
|00004650| 20 6e 65 76 65 72 20 73 | 74 61 72 74 20 66 72 6f | never s|tart fro|
|00004660| 6d 20 73 63 72 61 74 63 | 68 20 77 68 65 6e 20 62 |m scratc|h when b|
|00004670| 75 69 6c 64 69 6e 67 20 | 61 20 6e 65 77 20 6f 62 |uilding |a new ob|
|00004680| 6a 65 63 74 3a 20 20 49 | 74 20 69 73 20 65 61 73 |ject: I|t is eas|
|00004690| 79 20 74 6f 20 64 65 66 | 69 6e 65 20 61 20 6e 65 |y to def|ine a ne|
|000046a0| 77 20 6f 62 6a 65 63 74 | 20 74 68 61 74 20 69 73 |w object| that is|
|000046b0| 20 6a 75 73 74 20 6c 69 | 6b 65 20 61 6e 20 6f 6c | just li|ke an ol|
|000046c0| 64 20 6f 62 6a 65 63 74 | 20 65 78 63 65 70 74 20 |d object| except |
|000046d0| 66 6f 72 20 61 20 66 65 | 77 20 6d 69 6e 6f 72 20 |for a fe|w minor |
|000046e0| 64 69 66 66 65 72 65 6e | 63 65 73 2e 0d 0d 50 72 |differen|ces...Pr|
|000046f0| 69 6e 63 69 70 61 6c 20 | 66 61 63 74 6f 72 20 69 |incipal |factor i|
|00004700| 6e 20 65 6e 68 61 6e 63 | 69 6e 67 20 74 68 65 20 |n enhanc|ing the |
|00004710| ff 00 15 18 03 f7 72 65 | 75 73 61 62 69 6c 69 74 |......re|usabilit|
|00004720| 79 ff 00 15 18 00 f7 20 | 6f 66 20 6f 62 6a 65 63 |y...... |of objec|
|00004730| 74 73 2e 0d 0d 49 6e 68 | 65 72 69 74 61 6e 63 65 |ts...Inh|eritance|
|00004740| 20 69 73 20 75 6e 69 71 | 75 65 20 74 6f 20 4f 4f | is uniq|ue to OO|
|00004750| 50 2e 20 20 4c 61 6e 67 | 75 61 67 65 73 20 77 69 |P. Lang|uages wi|
|00004760| 74 68 20 6f 62 6a 65 63 | 74 73 20 62 75 74 20 77 |th objec|ts but w|
|00004770| 69 74 68 6f 75 74 20 69 | 6e 68 65 72 69 74 61 6e |ithout i|nheritan|
|00004780| 63 65 20 61 72 65 20 63 | 61 6c 6c 65 64 20 ff 00 |ce are c|alled ..|
|00004790| 15 18 02 f7 22 6f 62 6a | 65 63 74 2d 62 61 73 65 |...."obj|ect-base|
|000047a0| 64 2c 22 ff 00 15 18 00 | f7 20 65 2e 67 2e 2c 20 |d,".....|. e.g., |
|000047b0| 41 44 41 2e 0d 01 92 64 | 00 15 19 00 21 25 00 43 |ADA....d|....!%.C|
|000047c0| 3a 00 f6 0c 00 0e fd 00 | 21 74 00 2f af 00 39 a6 |:.......|!t./..9.|
|000047d0| 00 0b 19 00 00 a7 00 18 | da 01 64 7c 00 15 ac 01 |........|..d|....|
|000047e0| 87 74 00 3c 39 00 39 a6 | 00 14 fa 01 7e 7c 00 35 |.t.<9.9.|....~|.5|
|000047f0| 9b 00 39 a6 00 0a 49 03 | 37 7d 00 16 df 01 60 6c |..9...I.|7}....`l|
|00004800| 00 17 14 00 53 7c 00 17 | ac 01 25 6d 00 02 0c 01 |....S|..|..%m....|
|00004810| 69 6c 00 02 43 00 39 7c | 00 0f 00 01 9c 7c 00 0d |il..C.9||.....|..|
|00004820| 3e 01 8d 34 00 08 5e 00 | 53 0d 00 06 9c 01 55 7c |>..4..^.|S.....U||
|00004830| 00 05 4d 01 54 7c 00 18 | ec 00 39 a6 00 0a 60 01 |..M.T|..|..9...`.|
|00004840| 64 7c 00 1e 03 01 b7 74 | 00 3d 64 01 b2 7c 00 26 |d|.....t|.=d..|.&|
|00004850| 77 01 b4 7c 00 08 e1 01 | 8b 3c 00 0c a6 00 37 4d |w..|....|.<....7M|
|00004860| 00 0d 0e 01 73 7c 00 3f | 26 01 28 7c 00 06 bf 00 |....s|.?|&.(|....|
|00004870| f7 7c 00 25 de 00 54 6d | 00 08 19 01 46 74 00 39 |.|.%..Tm|....Ft.9|
|00004880| 5c 01 82 7c 00 0b 3f 01 | 2e 7d 00 26 1a 00 1c 0c |\..|..?.|.}.&....|
|00004890| 00 26 74 00 1b 4d 00 07 | ea 01 56 75 00 3b 72 00 |.&t..M..|..Vu.;r.|
|000048a0| 57 64 00 31 fa 01 44 0d | 00 10 b5 00 1b 6d 00 10 |Wd.1..D.|.....m..|
|000048b0| c4 01 b4 74 00 3b eb 00 | 56 4d 00 11 0b 00 2b 64 |...t.;..|VM....+d|
|000048c0| 00 11 1c 01 15 7c 00 12 | 8c 01 5c 7c 00 14 38 00 |.....|..|..\|..8.|
|000048d0| 2b 2d 00 14 92 01 95 74 | 00 44 fc 01 b0 7c 00 1f |+-.....t|.D...|..|
|000048e0| 77 00 1b a6 00 0a 70 00 | 2b a6 00 0a 7e 01 7c 7c |w.....p.|+...~.|||
|000048f0| 00 02 b5 00 de 6d 00 03 | a8 01 af 7c 00 04 88 00 |.....m..|...|....|
|00004900| b3 7d 00 0a ac 01 a7 7c | 00 21 2a 00 39 a6 00 0a |.}.....||.!*.9...|
|00004910| 98 01 7f 7c 00 28 a4 01 | 91 7c 00 23 4a 00 37 4d |...|.(..|.|.#J.7M|
|00004920| 00 14 bf 01 85 7c 00 2b | 17 01 b6 74 00 33 81 00 |.....|.+|...t.3..|
|00004930| 2f a6 00 25 be 01 68 7c | 00 2d 2d 01 c4 7c 00 23 |/..%..h||.--..|.#|
|00004940| c6 01 73 7c 00 1a 83 01 | bb |..s|....|. |
+--------+-------------------------+-------------------------+--------+--------+