O'Reilly logo

Sams Teach Yourself Java™ 2 Platform in 21 Days Professional Reference Edition by Rogers Cadenhead, Laura Lemay

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. A Taste of Object-Oriented Programming

Object-oriented programming is a lot like beer.

Most people who take a drink of the malted beverage for the first time don't like it, and may question the sanity of those who sing its praises. “What have I ever done to you,” they exclaim, “that you would make me imbibe this?”

Over a period of time, however, an appreciation of beer can be cultivated in those who continue to drink it. (For many people, this period of time is called college.)

Object-oriented programming, like beer, is an acquired taste. It's one of the most remarkable programming ideas to be introduced in recent years, and also the source of great consternation for programmers unfamiliar with it.

In some ways, the reputation is deserved. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required