home *** CD-ROM | disk | FTP | other *** search
Unknown | 1996-05-20 | 2.6 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
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 02 02 01 00 54 a3 a0 31 | 02 5b 06 53 79 73 74 65 |....T..1|.[.Syste|
|00000010| 6d 0c 43 68 72 69 73 20 | 43 6f 6c 6d 61 6e 1b 53 |m.Chris |Colman.S|
|00000020| 74 65 70 20 41 68 65 61 | 64 20 53 6f 66 74 77 61 |tep Ahea|d Softwa|
|00000030| 72 65 20 50 74 79 20 4c | 74 64 1d 51 75 69 63 6b |re Pty L|td.Quick|
|00000040| 20 49 6e 74 72 6f 20 74 | 6f 20 4f 4f 20 44 65 76 | Intro t|o OO Dev|
|00000050| 65 6c 6f 70 6d 65 6e 74 | 39 a9 20 31 39 39 36 2e |elopment|9. 1996.|
|00000060| 20 53 74 65 70 20 41 68 | 65 61 64 20 53 6f 66 74 | Step Ah|ead Soft|
|00000070| 77 61 72 65 20 50 74 79 | 20 4c 74 64 2e 20 41 6c |ware Pty| Ltd. Al|
|00000080| 6c 20 72 69 67 68 74 73 | 20 72 65 73 65 72 76 65 |l rights| reserve|
|00000090| 64 2e 01 68 03 63 70 70 | 02 5b 0d 4f 4f 44 42 47 |d..h.cpp|.[.OODBG|
|000000a0| 65 6e 65 72 61 74 6f 72 | 00 5d 00 00 01 00 00 00 |enerator|.]......|
|000000b0| 5d 06 00 02 5b 02 41 35 | 18 06 6a 04 2c 06 74 04 |]...[.A5|..j.,.t.|
|000000c0| 00 00 10 08 00 00 9e b7 | 67 5f 02 00 5d 02 5b 02 |........|g_..].[.|
|000000d0| 41 35 28 05 5c 03 3c 05 | 66 03 00 00 10 08 00 00 |A5(.\.<.|f.......|
|000000e0| 5c 46 45 41 02 00 5d 02 | 5b 02 41 35 00 05 ee 02 |\FEA..].|[.A5....|
|000000f0| 2f 09 10 03 00 00 10 08 | 88 00 54 68 65 20 70 75 |/.......|..The pu|
|00000100| 72 70 6f 73 65 20 6f 66 | 20 74 68 69 73 20 70 72 |rpose of| this pr|
|00000110| 6f 6a 65 63 74 20 66 69 | 6c 65 20 69 73 20 74 6f |oject fi|le is to|
|00000120| 20 67 69 76 65 20 79 6f | 75 20 61 20 71 75 69 63 | give yo|u a quic|
|00000130| 6b 20 69 6e 74 72 6f 64 | 75 63 74 69 6f 6e 20 74 |k introd|uction t|
|00000140| 6f 20 6f 62 6a 65 63 74 | 20 6f 72 69 65 6e 74 65 |o object| oriente|
|00000150| 64 20 70 72 6f 67 72 61 | 6d 6d 69 6e 67 2e 20 44 |d progra|mming. D|
|00000160| 6f 20 6e 6f 74 20 74 72 | 79 20 74 6f 20 63 6f 6d |o not tr|y to com|
|00000170| 70 69 6c 65 20 74 68 69 | 73 20 70 72 6f 6a 65 63 |pile thi|s projec|
|00000180| 74 2e 00 00 00 00 02 00 | 5d 02 5b 02 41 35 f6 04 |t.......|].[.A5..|
|00000190| 20 03 75 07 39 06 00 00 | 10 08 fd 04 49 6e 20 6f | .u.9...|....In o|
|000001a0| 74 68 65 72 20 6c 61 6e | 67 75 61 67 65 73 20 73 |ther lan|guages s|
|000001b0| 75 63 68 20 61 73 20 50 | 61 73 63 61 6c 2c 20 43 |uch as P|ascal, C|
|000001c0| 20 61 6e 64 20 65 76 65 | 6e 20 42 61 73 69 63 20 | and eve|n Basic |
|000001d0| 79 6f 75 20 63 61 6e 20 | 73 74 6f 72 65 20 72 65 |you can |store re|
|000001e0| 6c 61 74 65 64 20 64 61 | 74 61 20 69 6e 20 22 72 |lated da|ta in "r|
|000001f0| 65 63 6f 72 64 73 22 20 | 6f 72 20 22 73 74 72 75 |ecords" |or "stru|
|00000200| 63 74 75 72 65 73 22 2e | 20 49 6e 20 4a 61 76 61 |ctures".| In Java|
|00000210| 20 61 6e 64 20 43 2b 2b | 20 79 6f 75 20 63 61 6e | and C++| you can|
|00000220| 20 73 74 6f 72 65 20 72 | 65 6c 61 74 65 64 20 64 | store r|elated d|
|00000230| 61 74 61 20 69 6e 20 6f | 62 6a 65 63 74 73 2e 20 |ata in o|bjects. |
|00000240| 41 20 70 65 72 73 6f 6e | 20 6f 62 6a 65 63 74 20 |A person| object |
|00000250| 6d 69 67 68 74 20 63 6f | 6e 74 61 69 6e 20 61 20 |might co|ntain a |
|00000260| 70 65 72 73 6f 6e 27 73 | 20 6e 61 6d 65 2c 20 61 |person's| name, a|
|00000270| 64 64 72 65 73 73 2c 20 | 70 68 6f 6e 65 20 6e 75 |ddress, |phone nu|
|00000280| 6d 62 65 72 20 65 74 63 | 2e 2c 0a 0a 46 6f 72 20 |mber etc|.,..For |
|00000290| 65 61 63 68 20 64 69 66 | 66 65 72 65 6e 74 20 70 |each dif|ferent p|
|000002a0| 65 72 73 6f 6e 20 79 6f | 75 20 63 72 65 61 74 65 |erson yo|u create|
|000002b0| 20 61 20 64 69 66 66 65 | 72 65 6e 74 20 70 65 72 | a diffe|rent per|
|000002c0| 73 6f 6e 20 6f 62 6a 65 | 63 74 2e 20 54 6f 20 74 |son obje|ct. To t|
|000002d0| 65 6c 6c 20 4a 61 76 61 | 20 6f 72 20 43 2b 2b 20 |ell Java| or C++ |
|000002e0| 77 68 61 74 20 65 61 63 | 68 20 74 79 70 65 20 6f |what eac|h type o|
|000002f0| 66 20 6f 62 6a 65 63 74 | 20 73 74 6f 72 65 73 20 |f object| stores |
|00000300| 79 6f 75 20 63 72 65 61 | 74 65 20 61 20 22 63 6c |you crea|te a "cl|
|00000310| 61 73 73 22 20 66 6f 72 | 20 6f 62 6a 65 63 74 73 |ass" for| objects|
|00000320| 20 6f 66 20 74 68 61 74 | 20 74 79 70 65 2e 0a 0a | of that| type...|
|00000330| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 68 65 72 |For exam|ple, her|
|00000340| 65 20 69 73 20 61 20 63 | 6c 61 73 73 20 63 61 6c |e is a c|lass cal|
|00000350| 6c 65 64 20 70 65 72 73 | 6f 6e 20 77 68 69 63 68 |led pers|on which|
|00000360| 20 74 65 6c 6c 73 20 74 | 68 65 20 63 6f 6d 70 69 | tells t|he compi|
|00000370| 6c 65 72 20 77 68 61 74 | 20 66 6f 72 6d 20 6f 62 |ler what| form ob|
|00000380| 6a 65 63 74 73 20 6f 66 | 20 74 68 65 20 63 6c 61 |jects of| the cla|
|00000390| 73 73 20 22 50 65 72 73 | 6f 6e 22 20 61 72 65 20 |ss "Pers|on" are |
|000003a0| 74 6f 20 74 61 6b 65 2e | 20 49 74 20 73 70 65 63 |to take.| It spec|
|000003b0| 69 66 69 65 73 20 74 68 | 61 74 20 65 61 63 68 20 |ifies th|at each |
|000003c0| 50 65 72 73 6f 6e 20 6f | 62 6a 65 63 74 20 68 61 |Person o|bject ha|
|000003d0| 73 20 61 20 66 69 72 73 | 74 20 6e 61 6d 65 2c 20 |s a firs|t name, |
|000003e0| 6c 61 73 74 20 6e 61 6d | 65 2c 20 61 64 64 72 65 |last nam|e, addre|
|000003f0| 73 73 20 61 6e 64 20 70 | 68 6f 6e 65 20 6e 75 6d |ss and p|hone num|
|00000400| 62 65 72 2e 20 54 6f 20 | 6d 61 6b 65 20 61 6e 20 |ber. To |make an |
|00000410| 6f 62 6a 65 63 74 20 6f | 66 20 61 20 70 61 72 74 |object o|f a part|
|00000420| 69 63 75 6c 61 72 20 63 | 6c 61 73 73 20 75 73 65 |icular c|lass use|
|00000430| 20 74 68 65 20 6e 65 77 | 20 6f 70 65 72 61 74 6f | the new| operato|
|00000440| 72 2e 0a 65 67 2e 2c 20 | 50 65 72 73 6f 6e 20 6a |r..eg., |Person j|
|00000450| 6f 68 6e 53 6d 69 74 68 | 20 3d 20 6e 65 77 20 50 |ohnSmith| = new P|
|00000460| 65 72 73 6f 6e 3b 0a 0a | 42 79 20 63 6f 6e 76 65 |erson;..|By conve|
|00000470| 6e 74 69 6f 6e 20 63 6c | 61 73 73 20 6e 61 6d 65 |ntion cl|ass name|
|00000480| 73 20 73 74 61 72 74 20 | 77 69 74 68 20 61 20 63 |s start |with a c|
|00000490| 61 70 69 74 61 6c 20 6c | 65 74 74 65 72 20 61 6e |apital l|etter an|
|000004a0| 64 20 6f 62 6a 65 63 74 | 20 6e 61 6d 65 73 20 73 |d object| names s|
|000004b0| 74 61 72 74 20 77 69 74 | 68 20 61 20 6c 6f 77 65 |tart wit|h a lowe|
|000004c0| 72 20 63 61 73 65 20 6c | 65 74 74 65 72 2e 20 45 |r case l|etter. E|
|000004d0| 61 63 68 20 66 6f 6c 6c | 6f 77 69 6e 67 20 77 6f |ach foll|owing wo|
|000004e0| 72 64 20 69 6e 20 61 20 | 6e 61 6d 65 20 73 74 61 |rd in a |name sta|
|000004f0| 72 74 73 20 77 69 74 68 | 20 61 20 63 61 70 69 74 |rts with| a capit|
|00000500| 61 6c 20 6c 65 74 74 65 | 72 2e 0a 0a 57 68 65 72 |al lette|r...Wher|
|00000510| 65 20 4a 61 76 61 20 61 | 6e 64 20 43 2b 2b 20 64 |e Java a|nd C++ d|
|00000520| 69 66 66 65 72 20 66 72 | 6f 6d 20 6f 74 68 65 72 |iffer fr|om other|
|00000530| 20 6c 61 6e 67 75 61 67 | 65 73 20 69 73 20 74 68 | languag|es is th|
|00000540| 65 69 72 20 61 62 69 6c | 69 74 79 20 74 6f 20 61 |eir abil|ity to a|
|00000550| 6c 6c 6f 77 20 22 6d 65 | 74 68 6f 64 73 22 20 6f |llow "me|thods" o|
|00000560| 72 20 22 66 75 6e 63 74 | 69 6f 6e 73 22 20 74 6f |r "funct|ions" to|
|00000570| 20 62 65 20 61 73 73 6f | 63 69 61 74 65 64 20 77 | be asso|ciated w|
|00000580| 69 74 68 20 65 61 63 68 | 20 63 6c 61 73 73 20 61 |ith each| class a|
|00000590| 73 20 77 65 6c 6c 20 61 | 73 20 74 68 65 20 64 61 |s well a|s the da|
|000005a0| 74 61 2e 20 54 68 65 73 | 65 20 6d 65 74 68 6f 64 |ta. Thes|e method|
|000005b0| 73 20 64 65 66 69 6e 65 | 20 77 68 61 74 20 61 63 |s define| what ac|
|000005c0| 74 69 6f 6e 73 20 63 61 | 6e 20 62 65 20 70 65 72 |tions ca|n be per|
|000005d0| 66 6f 72 6d 65 64 20 6f | 6e 20 6f 72 20 62 79 20 |formed o|n or by |
|000005e0| 74 68 65 20 6f 62 6a 65 | 63 74 73 20 6f 66 20 61 |the obje|cts of a|
|000005f0| 20 70 61 72 74 69 63 75 | 6c 61 72 20 63 6c 61 73 | particu|lar clas|
|00000600| 73 2e 0a 0a 54 6f 20 63 | 61 6c 6c 20 61 20 6d 65 |s...To c|all a me|
|00000610| 74 68 6f 64 20 6f 66 20 | 61 6e 20 6f 62 6a 65 63 |thod of |an objec|
|00000620| 74 20 75 73 65 20 6f 62 | 6a 65 63 74 2e 6d 65 74 |t use ob|ject.met|
|00000630| 68 6f 64 28 29 20 77 68 | 65 72 65 20 6f 62 6a 65 |hod() wh|ere obje|
|00000640| 63 74 20 69 73 20 74 68 | 65 20 6e 61 6d 65 20 6f |ct is th|e name o|
|00000650| 66 20 74 68 65 20 6f 62 | 6a 65 63 74 20 61 6e 64 |f the ob|ject and|
|00000660| 20 6d 65 74 68 6f 64 20 | 69 73 20 74 68 65 20 6e | method |is the n|
|00000670| 61 6d 65 20 6f 66 20 74 | 68 65 20 6d 65 74 68 6f |ame of t|he metho|
|00000680| 64 20 74 68 61 74 20 79 | 6f 75 20 77 61 6e 74 20 |d that y|ou want |
|00000690| 74 6f 20 63 61 6c 6c 2e | 0a 06 06 06 06 02 00 5d |to call.|.......]|
|000006a0| 02 5b 06 43 43 6c 61 73 | 73 8a 07 16 03 e2 09 e2 |.[.CClas|s.......|
|000006b0| 04 00 00 06 50 65 72 73 | 6f 6e 06 52 45 4e 41 4d |....Pers|on.RENAM|
|000006c0| 45 00 11 00 41 6e 20 65 | 78 61 6d 70 6c 65 20 63 |E...An e|xample c|
|000006d0| 6c 61 73 73 2e 01 00 68 | 03 00 63 70 70 00 00 00 |lass...h|..cpp...|
|000006e0| 00 01 00 01 00 00 00 01 | 00 00 00 00 00 00 00 04 |........|........|
|000006f0| 00 02 5b 04 44 61 74 61 | 02 00 00 00 00 00 06 53 |..[.Data|.......S|
|00000700| 74 72 69 6e 67 07 61 64 | 64 72 65 73 73 06 00 4e |tring.ad|dress..N|
|00000710| 6f 44 65 73 63 00 00 01 | 00 01 00 01 00 00 00 5d |oDesc...|.......]|
|00000720| 02 5b 04 44 61 74 61 02 | 00 00 00 00 00 06 53 74 |.[.Data.|......St|
|00000730| 72 69 6e 67 09 66 69 72 | 73 74 4e 61 6d 65 14 00 |ring.fir|stName..|
|00000740| 50 65 72 73 6f 6e 27 73 | 20 66 69 72 73 74 20 6e |Person's| first n|
|00000750| 61 6d 65 2e 00 00 01 00 | 01 00 01 00 00 00 5d 02 |ame.....|......].|
|00000760| 5b 04 44 61 74 61 02 00 | 00 00 00 00 06 53 74 72 |[.Data..|.....Str|
|00000770| 69 6e 67 08 6c 61 73 74 | 4e 61 6d 65 13 00 50 65 |ing.last|Name..Pe|
|00000780| 72 73 6f 6e 27 73 20 6c | 61 73 74 20 6e 61 6d 65 |rson's l|ast name|
|00000790| 2e 00 00 01 00 01 00 01 | 00 00 00 5d 02 5b 04 44 |........|...].[.D|
|000007a0| 61 74 61 02 00 00 00 00 | 00 06 53 74 72 69 6e 67 |ata.....|..String|
|000007b0| 0b 70 68 6f 6e 65 4e 75 | 6d 62 65 72 16 00 50 65 |.phoneNu|mber..Pe|
|000007c0| 72 73 6f 6e 27 73 20 70 | 68 6f 6e 65 20 6e 75 6d |rson's p|hone num|
|000007d0| 62 65 72 2e 00 00 01 00 | 01 00 01 00 00 00 5d 02 |ber.....|......].|
|000007e0| 00 02 5b 08 46 75 6e 63 | 74 69 6f 6e 01 00 00 00 |..[.Func|tion....|
|000007f0| 00 00 04 76 6f 69 64 11 | 63 72 65 61 74 65 41 64 |...void.|createAd|
|00000800| 64 72 65 73 73 53 6c 69 | 70 34 00 50 72 69 6e 74 |dressSli|p4.Print|
|00000810| 73 20 74 68 65 20 70 65 | 72 73 6f 6e 27 73 20 6e |s the pe|rson's n|
|00000820| 61 6d 65 20 61 6e 64 20 | 61 64 64 72 65 73 73 20 |ame and |address |
|00000830| 6f 6e 20 74 68 65 20 70 | 72 69 6e 74 65 72 2e 00 |on the p|rinter..|
|00000840| 00 01 00 00 00 00 00 00 | 00 01 00 00 00 00 00 03 |........|........|
|00000850| 00 00 00 00 00 5d 02 5b | 08 46 75 6e 63 74 69 6f |.....].[|.Functio|
|00000860| 6e 01 00 00 00 00 00 04 | 76 6f 69 64 04 72 69 6e |n.......|void.rin|
|00000870| 67 4a 00 54 68 69 73 20 | 6d 65 74 68 6f 64 20 77 |gJ.This |method w|
|00000880| 69 6c 6c 20 67 65 6e 65 | 72 61 74 65 20 74 68 65 |ill gene|rate the|
|00000890| 20 74 6f 6e 65 73 20 6e | 65 63 65 73 73 61 72 79 | tones n|ecessary|
|000008a0| 20 74 6f 20 64 69 61 6c | 20 74 68 65 20 70 65 72 | to dial| the per|
|000008b0| 73 6f 6e 27 73 20 6e 75 | 6d 62 65 72 2e 00 00 01 |son's nu|mber....|
|000008c0| 00 00 00 00 00 00 00 01 | 00 00 00 00 00 03 00 00 |........|........|
|000008d0| 00 00 00 5d 5d 02 5b 02 | 41 35 94 07 0a 05 37 0a |...]].[.|A5....7.|
|000008e0| d4 05 00 00 10 08 8c 01 | 54 68 65 20 50 65 72 73 |........|The Pers|
|000008f0| 6f 6e 20 63 6c 61 73 73 | 20 61 62 6f 76 65 20 63 |on class| above c|
|00000900| 6f 6e 74 61 69 6e 73 20 | 74 77 6f 20 6d 65 74 68 |ontains |two meth|
|00000910| 6f 64 73 2e 20 59 6f 75 | 20 63 61 6e 20 72 65 61 |ods. You| can rea|
|00000920| 64 20 61 62 6f 75 74 20 | 65 61 63 68 20 6f 6e 65 |d about |each one|
|00000930| 20 62 79 20 6f 70 65 6e | 69 6e 67 20 74 68 65 20 | by open|ing the |
|00000940| 6d 65 6d 62 65 72 27 73 | 20 64 69 61 6c 6f 67 20 |member's| dialog |
|00000950| 62 6f 78 20 28 72 69 67 | 68 74 20 63 6c 69 63 6b |box (rig|ht click|
|00000960| 20 6f 6e 20 74 68 65 20 | 63 6c 61 73 73 20 69 63 | on the |class ic|
|00000970| 6f 6e 20 61 6e 64 20 73 | 65 6c 65 63 74 20 22 4d |on and s|elect "M|
|00000980| 65 6d 62 65 72 73 2e 2e | 2e 22 29 20 61 6e 64 20 |embers..|.") and |
|00000990| 74 68 65 6e 20 64 6f 75 | 62 6c 65 20 63 6c 69 63 |then dou|ble clic|
|000009a0| 6b 69 6e 67 20 6f 6e 20 | 74 68 65 20 61 70 70 72 |king on |the appr|
|000009b0| 6f 70 72 69 61 74 65 20 | 6d 65 74 68 6f 64 2e 20 |opriate |method. |
|000009c0| 49 6e 20 74 68 69 73 20 | 65 78 61 6d 70 6c 65 20 |In this |example |
|000009d0| 6e 6f 20 63 6f 64 65 20 | 68 61 73 20 62 65 65 6e |no code |has been|
|000009e0| 20 77 72 69 74 74 65 6e | 20 66 6f 72 20 74 68 65 | written| for the|
|000009f0| 73 65 20 6d 65 74 68 6f | 64 73 20 61 73 20 74 68 |se metho|ds as th|
|00000a00| 65 20 63 6c 61 73 73 20 | 69 73 20 64 65 66 69 6e |e class |is defin|
|00000a10| 65 64 20 74 6f 20 62 65 | 20 61 20 6c 69 62 72 61 |ed to be| a libra|
|00000a20| 72 79 20 63 6c 61 73 73 | 2e 0a 0a 54 6f 20 6d 61 |ry class|...To ma|
|00000a30| 6b 65 20 61 6e 20 61 64 | 64 72 65 73 73 20 73 6c |ke an ad|dress sl|
|00000a40| 69 70 20 66 6f 72 20 6a | 6f 68 6e 53 6d 69 74 68 |ip for j|ohnSmith|
|00000a50| 20 75 73 65 3a 0a 6a 6f | 68 6e 53 6d 69 74 68 2e | use:.jo|hnSmith.|
|00000a60| 63 72 65 61 74 65 41 64 | 64 72 65 73 73 53 6c 69 |createAd|dressSli|
|00000a70| 70 28 29 3b b6 01 97 66 | 02 00 5d |p();...f|..] |
+--------+-------------------------+-------------------------+--------+--------+