Chapter 19 - Working in an Object-oriented Environment
Visual C++ 6: The Complete Reference
Chris H. Pappas and William H. Murray, III
Copyright 1998 The McGraw-Hill Companies
Chapter 19: Working in an Object-oriented Environment
Overview
C++ appears to be the language of choice among object-oriented programmers; however, other languages are available. Every object-oriented language shares several common features. Bertrand Meyer, in his book Object-Oriented Software Construction (Prentice Hall, 1995), suggests that there are seven features standard to true object-oriented programs as a whole:
•
Abstract data types
•
Classes
•
Inheritance
•
Inheritance (multiple)
•
Memory management (automatic)
•
Object-based modularization
•
Polymorphism
In Chapter 17 you learned that Visual C++ classes provide these features to the object-oriented programmer. You might also conclude that to do true object-oriented programming, you must work in a language, such as C++, that is itself object oriented. There are valid arguments against this notion, as you will see later in this book. For example, programs written for Microsoft’s Windows contain many of the seven previously mentioned features, even though they can be written in C.