In computer programming, a utility class is a class that defines a set of methods that perform common, often re-used functions. Most utility classes define these common methods under static (see Static variable) scope. Examples of utility classes include java.util.Collections which provides several utility methods (such as sorting) on objects that implement a Collection (java.util.collection ).
Famous quotes containing the words utility and/or class:
“Moral sensibilities are nowadays at such cross-purposes that to one man a morality is proved by its utility, while to another its utility refutes it.”
—Friedrich Nietzsche (18441900)
“We believe that Carlyle has, after all, more readers, and is better known to-day for this very originality of style, and that posterity will have reason to thank him for emancipating the language, in some measure, from the fetters which a merely conservative, aimless, and pedantic literary class had imposed upon it, and setting an example of greater freedom and naturalness.”
—Henry David Thoreau (18171862)