2 ms·
Or you know, actually make a class that contains the data and a constructor. Or even a simple struct if one is allergic to classes for simple types. For the ex
by daemin 11y ago
Or you know, actually make a class that contains the data and a constructor. Or even a simple struct if one is allergic to classes for simple types.
For the example given in the article a simple class or struct is already a better and easier data structure to use and store.