22 lines
237 B
Plaintext
22 lines
237 B
Plaintext
|
public class Generic<X> extends Tester
|
||
|
{
|
||
|
|
||
|
X elem;
|
||
|
|
||
|
public setElement(e){
|
||
|
elem=e;
|
||
|
}
|
||
|
|
||
|
public X getElement(){
|
||
|
return elem;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
public class Tester{
|
||
|
public meth(String e){
|
||
|
x;
|
||
|
x.setElement("");
|
||
|
return(x.getElement());
|
||
|
}
|
||
|
}
|