Question d’entretien chez Softnetix Software

How to properly enforce Open-closed principle on a code sample