Home Segments Index Top Previous Next

4: Mainline

An object-oriented programming language encourages you to design programs around data types and data-type hierarchies that you define yourself. Typically, you define data types and data-type hierarchies so that you can describe individual nails, horseshoes, horses, kingdoms, or whatever else happens to come up naturally in your application.

In contrast, procedure-oriented programming languages encourage you to think in terms of procedures, instead of in terms of data types and data-type hierarchies.

In this book, you learn more about what object-oriented means and why many programmers prefer object-oriented languages. For now, it suffices to know that C++ is an object-oriented programming language, whereas most other programming languages are procedure-oriented programming languages.