Start here · Essential guide
SOLID Principles in C++
Learn the five SOLID principles in C++ with short examples of single responsibility, open/closed, Liskov, interface segregation and dependency inversion.
Classes and Design
The five SOLID principles applied in C++ and how they relate to clean code.
Start here · Essential guide
Learn the five SOLID principles in C++ with short examples of single responsibility, open/closed, Liskov, interface segregation and dependency inversion.
SOLID uses object-oriented terms, but its core ideas also apply to plain functions and templates in C++. Learn where the ideas fit beyond classes.
Java has no official set of five principles. Learn the two lists people usually mean, SOLID and the core OOP concepts, and how they apply to C++.
There is no official top 10 list of clean code principles. Here are ten widely cited ideas, each with a short explanation and a C++ example where useful.
SOLID principles help keep C++ code easier to change, test and reuse. Learn the problems they prevent, see a coupling example and understand their limits.
Related topics