Author : Ankur narendrabhai shah
Keyword : Class template, multiple parameters
Subject : Science and technology
Article Type : Review article
Article File : Full Text PDF
Abstract : Templates allow us to define generic class and function. So it supports generic programming. Generic programming is an approach where generic types are used as parameters in algorithms so that they work for a variety of suitable data types and data structures. A template can be used to create a family of classes or functions. For example, it can be used with class like student etc and it also can be used for function mul() etc. A template is also known as a kind of macro. Whenever template is created for any class it required substituted data types. Since template is define with a parameter for classes or functions so it is sometime called as parameterized classes or functions. The main aim of this thesis is to show various ways to use template either with function or class.
Article by : Ankur N Shah
Article add date : 2020-12-01
How to cite : Ankur narendrabhai shah. (2020-December-01). Introduction to templates. retrieved from https://www.openacessjournal.primarydomain.in/abstract/378