Quantcast
Channel: Programujte.com – fórum – programování – Java
Viewing all articles
Browse latest Browse all 1078

Java → Genericka metóda

$
0
0
Je nejaký rozdiel medzy: public static boolean isAreaEqual(GeometricObject obj1, GeometricObject obj2) {      return obj1.getArea() == obj2.getArea(); } a: public static <E extends GeometricObject> boolean isAreaEqual(E obj1, E obj2) {      return obj...
Založil java; 6 názorů, poslední před 9 hodinami – nevyřešeno

Viewing all articles
Browse latest Browse all 1078

Latest Images