Classes in Java hold logic and internal mutating state. I don’t want to create this just because I need a type.
Really you want to create a struct or an interface as a type.
https://en.wikipedia.org/wiki/Interface_(Java)
Classes in Java hold logic and internal mutating state. I don’t want to create this just because I need a type.
Really you want to create a struct or an interface as a type.