Skip to main content

Visitor Design Pattern

  • Chapter
  • First Online:
  • 1372 Accesses

Abstract

The next stop on your voyage through the Design Patterns galaxy takes you to the Visitor design pattern, another of the design patterns found in the GoF catalog. You will find this design pattern most useful once the maintenance cycle has begun on software components.

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    See http://butunclebob.com/ArticleS.UncleBob.PrinciplesOfOod .

  2. 2.

    Presumably the word extension is a reference to the Java language, where a subclass indicates its relationship to a superclass by naming the superclass in its class definition following the word extends, similar to the way the phrase inheriting from denotes this relationship in ABAP.

  3. 3.

    GoF, p. 331.

  4. 4.

    GoF, p. 334.

  5. 5.

    To facilitate brevity in the UML class diagram, we omitted classes corresponding to insect_infestation_inspector and fire_safety_inspector, which would mimic class water_quality_inspector in that each implements the visitor interface and provides implementations for the methods defined by the visitor interface.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 James E. McDonough

About this chapter

Cite this chapter

McDonough, J.E. (2017). Visitor Design Pattern. In: Object-Oriented Design with ABAP. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2838-8_26

Download citation

Publish with us

Policies and ethics