|
What this is
Other links
The source codeclass Test { public static void main(String[] args) { new A<Number>().k(new Double(1)); new A<Integer>().k(new Integer(2)); new Impl().m(new Integer(3)); new Impl().k(new Float(4)); A<Number> a= new Impl(); a.k(new Integer(6)); a.k(new Double(7)); } } class A<G> { void k(G g) { System.out.println("A#m(G): " + g); } } class Impl extends A<Number> { void m(Integer g) { System.out.println("nonripple Impl#m(Integer): " + g);} void k(Number g) { System.out.println("Impl#m(Number): " + g); } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.