Generics: Java vs. C++

Jyväskylä: University of Jyväskylä, 2005. 28 p. Bachelorʹs Thesis Generic programming is a widely appreciated and strongly affecting paradigm in software development. A number of programming languages now support generic programming, such as C++, Ada, and Haskell. Generics are the most recent enh...

Full description

Bibliographic Details
Main Author: Khalifa, Ahmed
Other Authors: Informaatioteknologian tiedekunta, Faculty of Information Technology, Informaatioteknologia, Information Technology, University of Jyväskylä, Jyväskylän yliopisto
Format: Bachelor's thesis
Language:eng
Published: 2005
Subjects:
Online Access: https://jyx.jyu.fi/handle/123456789/19977
Description
Summary:Jyväskylä: University of Jyväskylä, 2005. 28 p. Bachelorʹs Thesis Generic programming is a widely appreciated and strongly affecting paradigm in software development. A number of programming languages now support generic programming, such as C++, Ada, and Haskell. Generics are the most recent enhancement to the type system of the Java programming language. This advanced feature of Java 1.5 is most notably similar to templates in C++, as some might like to claim. Templating, genericity, parameterized types, or parametric polymorphism refer to the same technique; basically, instantiating versions of classes using some type as a parameter, such as integer, float, or a class. This thesis work gives a comparison of generics in C++ against the newly introduced genericity extension to the Java programming language.