JAVA : How to name interface and implementor
So in my new project, every day I had question about naming things.
Here how I name my interfaces and implementor.
- Name your
Interfacewhat it is.
ITruckbecause it isn't an
ITruckit is a
- The prefix hurts readability.
- Don’t forget your interface is a type, so think about people who use this type, they don’t care to know if it is an
- You will never called an Object