Next Previous Up Top

3 Introducing Objects and Classes

3.9 Summary

3.9 Summary

This chapter has introduced the ideas of object and class. An object combines variables and methods into a single unit, giving a public interface and an encapsulated private representation. A class is used to define the implementation of an object and, in doing so, introduces a new type. Objects interact by calling each others' methods and those methods are dynamically bound, so a calling object is only concerned with the public interface presented by an object and not its implementation.

We now have the basic ideas of object-oriented programming in place and can finish this chapter by formally make the following definitions:

Copyright 1997 Russel Winder and Graham Roberts

Last updated: 6 Oct 1997