A simple generic class in Java v. 5.0
:: ¹ҡѹ :: Java 2 v 5.0 (Tiger) :: Generics
หน้า 1 จาก 1
A simple generic class in Java v. 5.0
//A simple generic class in Java v. 5.0
class Gen<T> {
T ob; // declare an object of type T
// class Constructor
Gen(T o) { ob = o; }
// the Get method
T getob() { return ob; }
}
//Show type of T
void showType() {
System.out.println("Type of T is " + ob.getClass().getName()); }
}// End of class
Similar topics
» ?????駤?Ѻ
» ??????????ͧ??????ǡѺ Generic ???
» generic cialis online uk
» Buy generic cialis online now
» ??????ҧ????? Generic (???????? array ??Ѻ)
» ??????????ͧ??????ǡѺ Generic ???
» generic cialis online uk
» Buy generic cialis online now
» ??????ҧ????? Generic (???????? array ??Ѻ)
:: ¹ҡѹ :: Java 2 v 5.0 (Tiger) :: Generics
หน้า 1 จาก 1
Permissions in this forum:
คุณไม่สามารถพิมพ์ตอบ