Typescript

Generics

Aids in providing single implementation of functionality for many types.

Example:
class myclass<T>{
some_var: T; 
}

Published by

Unknown's avatar

sevanand yadav

software engineer working as web developer having specialization in spring MVC with mysql,hibernate

Leave a comment