Object-Oriented Concepts

Object-oriented programming is centered around six basic concepts:

  1. object

  2. message

  3. interface

  4. class

  5. inheritance

  6. polymorphism

People seem to have attached a wide range of meanings to these concepts, most of which are quite serviceable. We define some of these concepts perhaps a little more tightly than most people do because precision facilitates a better understanding of testing the concepts and eliminates some potential confusion about what needs to be tested. For example, while a distinction between operations and methods (or member functions) is not significant for most programmers, the distinction is significant to testers because the approach to testing an operation, which is part of a class specification and a way to manipulate ...

Get A Practical Guide to Testing Object-Oriented Software now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.