We will start by reviewing some of the foundations of object-oriented programming (OOP), specifically from the point of view of a hardware-centered, SBC-powered project. Whether you are familiar with OOP or not, we will discuss some examples that demonstrate the usefulness of inheritance when dealing with peripherals such as sensors. In later chapters we will see how polymorphism helps create more elegant and scalable tools for troubleshooting, logging, and monitoring.
Object-Oriented Programming Basics
In object-oriented programming, as the name suggests, the programmer ...