Hands on demonstration of creating an interface, having a class implement that interface, and using the interface as a type for a parameter variable in a method.
Source code is freely available on GitHub at https://github.com/discospiff/Vehicles2022mvn