As static classes are not tied to any instance, is the following a good example (from a philosophical POV) of using a static class:
A spare tire (for a road vehicle), as this is not tied to any car (which can be another – albeit instance – class).
Thanks
The language concerned is Java (though I am a .NET Developer, I was practising in Java).
No. There’s still a tire; a tire doesn’t have to be associated with a car–it could be associated with a tire rack, or the shoulder of a road.
A “static class” is one not generally meant to be instantiated, for example, a bunch of related utility methods that act on other classes or have other side effects.
(In quotes because there’s no such thing as a top-level static class, only inner classes.)