Hour 10. Creating Your First Object

One of the more fearsome examples of jargon that you'll encounter during these 24 hours is object-oriented programming. This is a complicated term that describes, in an elegant way, what a computer program is and how it works.

Before object-oriented programming, a computer program was usually described under the simplest definition you've learned in this book: a set of instructions listed in a file and handled in some kind of reliable order.

Whether the program is big or small, the programmer's job is largely the same—write instructions for each thing the computer must do. By thinking of a program as a collection of objects instead, you can figure out the tasks a program must accomplish, then assign the tasks ...

Get SAMS Teach Yourself Programming with Java™ in 24 Hours, FOURTH EDITION now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.