8 ms·
In a statically-typed language like Java, every class is a type - though not vice-versa, since things like interfaces and records (in Java) are also types. Non
by Tainnor 1y ago
In a statically-typed language like Java, every class is a type - though not vice-versa, since things like interfaces and records (in Java) are also types.
Non-OOP statically typed languages are basically just saying "ok that's fine, but there's no need to attach state or behaviour to types".