RSS JAVAGeneric-AJava.org
哪吒推荐该订阅
简介:java源码实例 / generic
原站:http://ajava.org/code/Generic/index.html
点击立即订阅,“JAVAGeneric-AJava.org”的内容有更新,哪吒第一时间提醒您
“JAVAGeneric-AJava.org”的内容更新
累计:10 篇(自 2009-07-22 起)
更新:约4篇/年,最后更新942 天前
JAVAGeneric-AJava.org
generic对象测试器 /* licenseforjava1.5'tiger':adeveloper'snotebook (o'reilly)examplepackage java1.5'tiger':adeveloper'snotebook(o'reilly) bybrettmclaughlinanddavidflanagan. isbn:0-596-00738-8 youcanusetheexamplesandthesourcecodeanywayyouwa... (310 天前)
JAVAGeneric-AJava.org
hierarchy generic类例子 //here,tisboundbyobjectbydefault. class gent{ tob; //here,twillbereplacedbyobject gen(to){ ob=o; } //returnob. tgetob(){ return ob; } } //here,tisboundbystring. class genstrt extends string{ tstr; //here,twillberepl... (310 天前)
JAVAGeneric-AJava.org
instanceof与generic类的结合使用例子 class gent{ tob; gen(to){ ob=o; } //returnob. tgetob(){ return ob; } } //asubclassofgen. class gen2t extends gent{ gen2(to){ super (o); } } //demonstrateruntimetypeidimplicationsofgenericclasshierarchy.... (310 天前)
JAVAGeneric-AJava.org
generic基类可用非generic类的示例 //anongenericclass. class nongen{ int num; nongen( int i){ num=i; } int getnum(){ return num; } } //agenericsubclass. class gent extends nongen{ tob; //declareanobjectoftypet //passtheconstructorareferencet... (310 天前)
JAVAGeneric-AJava.org
generic类等级示例 class gent{ tob; gen(to){ ob=o; } //returnob. tgetob(){ return ob; } } //asubclassofgenthatdefinesasecond //typeparameter,calledv. class gen2t,v extends gent{ vob2; gen2(to,vo2){ super (o); ob2=o2; } vgetob2(){ return ob2... (310 天前)
JAVAGeneric-AJava.org
展示创建generic类的错误例子stats attempts (unsuccessfully) to create a generic class that can compute.the average of an array of numbers of any given type. ... (310 天前)
JAVAGeneric-AJava.org
一个展示generic错误的例子 class nongen { objectob; nongen ( objecto ){ ob=o; } objectgetob (){ return ob; } void showtype (){ system.out.println ( typeofobis + ob.getclass () .getname ()) ; } } publicclass nongendemo { publicstatic void ma... (310 天前)
订阅者 ( 1 )
chinesedocument
相关订阅源
RSS ZSL Latest News

news from zsl.org

标签: zoology

指数 | 1人订阅  

RSS Mystery of Existence

an exploration into the mystery of existence

指数 | 1人订阅  

我要反馈