© James E. McDonough 2017

James E. McDonough, Object-Oriented Design with ABAP, 10.1007/978-1-4842-2838-8_28

28. Solidifying Robust Design Habits

James E. McDonough

(1)Pennington, New Jersey, USA

Much has been learned over the years about what constitutes good object-oriented design, some of which has been gained at the expense of object-oriented pioneers, who, through trial and error, have discovered cases of poor design and have shared their knowledge with those of us who otherwise would find out the hard way why some designs are not viable.

The Gang of Four offer these nuggets of wisdom:

  1. Program to an interface, not an implementation.1

  2. Favor composition over class inheritance.2

  3. Encapsulate the concept that varies.3

The first of these statements ...

Get Object-Oriented Design with ABAP: A Practical Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.