Part1Foundationsofobjectorientation
Chapter1Objectsandclasses
1.1Objectsandclasses
1.2Creatingobjects
1.3Callingmethods
1.4Parameters
1.5Datatypes
1.6Multipleinstances
1.7State
1.8Whatisinanobject?
1.9Objectinteraction
1.10Sourcecode
1.11Anotherexample
1.12Returnvalues
1.13Objectsasparameters
1.14Summary
Chapter2Understandingclassdefinitions
2.1Ticketmachines
2.1.1ExploringthebehaviorofanaTveticketmachine
2.2Examiningaclassdefinition
2.3Fields,constructors,andmethods
2.3.1Fields
2.3.2Constructors
2.4Passingdataviaparameters
2.5Assignment
2.6Accessormethods
2.7Mutatormethods
2.8Printingfrommethods
2.9Summaryofthenaiveticketmachine
2.10Reflectingonthedesignoftheticketmachine
2.11Makingchoices:theconditionalstatement
2.12Afurtherconditional-statementexample
2.13Localvariables
2.14Fields,parameters,andlocalvariables
2.15Summaryofthebetterticketmachine
2.16Self-reviewexercises
2.17Reviewingafamiliarexample
2.18Summary
Chapter3Objectinteraction
3.1Theclockexample
3.2Abstractionandmodularization
3.3Abstractioninsoftware
3.4Modularizationintheclockexample
3.5Implementingtheclockdisplay
3.6Classdiagramsversusobjectdiagrams
3.7Primitivetypesandobjecttypes
3.8TheClockDisplaysourcecode
3.8.1ClassNumberDisplay
3.8.2Stringconcatenation
3.8.3Themodulooperator
3.8.4ClassClockDisplay
3.9Objectscreatingobjects
3.10Multipleconstructors
3.11Methodcalls
3.11.1Internalmethodcalls
3.11.2Externalmethodcalls
3.11.3Summaryoftheclockdisplay
3.12Anotherexampleofobjectinteraction
3.12.1Themailsystemexample
3.12.2Thethiskeyword
3.13Usingadebugger
3.13.1Settingbreakpoints
3.13.2Singlestepping
3.13.3Steppingintomethods
3.14Methodcallingrevisited
3.15Summary
……
Part2Applicationstructures
Appendices
Index