Skip to content

Design patterns from the book "Head first Design Patterns" in SAP ABAP

Notifications You must be signed in to change notification settings

gaydov/ABAP-HeadFirstDesignPatterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Implemented the examples from the book "Head First Design Patterns: A Brain-Friendly Guide" in ABAP.

Due to the differences between ABAP and Java(which is used in the book), the examples are not exactly like in the book - e.g. in the book there is a void method that prints a string to the console but in ABAP I implemented it with a method returning the string because it cannot be printed directly in the console like in Java.

Strategy pattern

The Strategy Pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy lets the algorithm vary independently from clients that use it.

Design principles:

  • Identify the aspects of your application that vary and separate them from what stays the same.
  • Program to an interface, not an implementation.
  • Favor composition over inheritance.

About

Design patterns from the book "Head first Design Patterns" in SAP ABAP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages