Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Computer Programming/Generic programming

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Generic Programming is a style of programming where algorithms and other programming bits use unspecified data and class types. This means that one could write a function such as Multiply<T>(T a, T b) and later pass on an integer as a and b, or a long integer, or any other type of variable. This is most useful in strongly-typed languages, as weakly-typed languages have no need for them.