• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Object Orientation Concepts

The distinguishing characteristic of object-oriented programming languages is the design of objects.

Suppose we wished to keep track of all the information about the green floppy disk where we are saving this document. We would need many variables. We could give them names like greenDiskFreespace, and greenDiskWriteProtected. But we quickly see that the code grows unwieldy when we wish to also create representations of a translucent red disk (where we store a backup of this chapter), a nontranslucent red disk (which holds a copy of “Ozymandias”), and a yellow disk (which was just formatted).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint