Skip to main content

Object Oriented Programming Concepts

  • Chapter
Book cover Object Oriented Programming Using C++

Part of the book series: Macmillan Computer Science Series ((COMPSS))

  • 131 Accesses

Abstract

Computer programs model or simulate real-world or imaginary-world objects and their interactions. We can illustrate this by considering a simple computer game in which the user guides a little figure around a maze. The little figure is a model of a person who can walk around a maze. As with all models, because they are models, they do not have all of the facilities of their real-world counterparts. Our little figure may only be required to “walk” in each of the four compass directions (because the walls of the maze are at right angles to each other), and “recognise” when it reaches a wall, and “decide” which direction to take next. Note that the verbs “walk”, “recognise” and “decide” describe the behaviour or the functions of the model. Other aspects of the model might be its colour and the size of the figure. These attributes are information (or data) that describe the structure and nature of the model. They do not necessarily influence the behaviour of the model, but may do so, for example, if an aspect of the behaviour was a function to change the colour or size.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Copyright information

© 1997 J.P Pardoe and M.J. King

About this chapter

Cite this chapter

Pardoe, J., King, M. (1997). Object Oriented Programming Concepts. In: Object Oriented Programming Using C++. Macmillan Computer Science Series. Palgrave, London. https://doi.org/10.1007/978-1-349-14449-5_2

Download citation

  • DOI: https://doi.org/10.1007/978-1-349-14449-5_2

  • Publisher Name: Palgrave, London

  • Print ISBN: 978-0-333-69241-7

  • Online ISBN: 978-1-349-14449-5

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics