I've seen some libraries, like Gson from Google. You can create objects like any other class, but I don't see any point or reason to do this with some libraries... With GSON, it's like:
Gson gson = new Gson()
Why not making a class with static fields? So, instead of
gson.someMethod()
They did like this?
Gson.someMethod()
I'm not talking specifically about Gson, it could be any example as you think, I've seen a lot of classes that only have one single instance... I saw this quote in a github repo and it was kinda fun:
Classes
You can make classes, but you can only ever make one instance of them. This shouldn't affect how most object-oriented programmers work.
(https://github.com/TodePond/DreamBerd)
