3 ms·
OO operates on ownership. The String's length, the String's text. Create a new String, and you expect it to look like a String and talk like a String. If there
by whacked_new 18y ago
OO operates on ownership. The String's length, the String's text. Create a new String, and you expect it to look like a String and talk like a String.
If there isn't an inherent ownership and hierarchy of data and data properties, OO isn't at all necessary. When the structure is well-defined though, which is in many cases, it is the most intuitive abstraction.