Profile Picture
IT Made Easy
The site provides some rough IT Notes that make your life easier. The site currently has notes on HTML, CSS, Regex, OOPS, JS, JQuery, PHP, Java, ASP.NET, C#, Database, Linux, URL Rewrite, SEO, Project Management and Hosting. Please do share this site if you like.

Generics

Next
Next
  • Reusability with a "template" that contains "placeholder" types
  • Generic types are not covariant. This means that even if B can be cast to A, T<B> cannot be cast to T<A>.
  • Three kinds of constraints are derivation constraint, constructor constraint and reference/value constraint
  • In derivation constraint base constrained must never have lower visibility than generic type parameter
  • Order: (1) reference/value constraint (2) derivation constraint (3) constructor constraint

IT Notes

by VinodSebastian



IT Downloads


Catalogue