Generics ใน Java: ผู้ใช้มีสิทธิเลือกชนิดข้อมูล

Main Article Content

เนรมิต ชุมสาย ณ อยุธยา

Abstract

Those who have been programming for years with OOP in language such as C++ when moved to earlier version of Java often found themselves in need of ways to represent type of data only when user specified it. Luck is on our side, in Java 1.5 (Tiger), we now have an ability to use Generics where use can use any type of data they want in their programs. The aim of this article is to introduce readers to understand the concept of Generics and how to use it to benefit those who use their programs.

Article Details

Section
Academic Articles