Generic methods, like generic classes, are parameterized (typified) methods, which we use when we cannot specify the type of the method’s parameters. Also like in the case of generic classes, the replacement of unknown types with specific types happens when the method is called.… Read more
Posts Tagged ‘generic class’
Generic methods
Friday, June 23rd, 2017Generic classes
Sunday, June 18th, 2017Generic classes, also known as generic data types or simply generics, are classes of unknown type until they are instantiated to some specific type.
Because this concept is a bit harder to explain, I will first exemplify a specific case that will help you better understand it.… Read more