5
Java: sınırlı joker karakterler veya sınırlı tür parametresi?
Son zamanlarda şu makaleyi okudum: http://download.oracle.com/javase/tutorial/extra/generics/wildcards.html Sorum şu, bunun gibi bir yöntem oluşturmak yerine: public void drawAll(List<? extends Shape> shapes){ for (Shape s: shapes) { s.draw(this); } } Bunun gibi bir yöntem oluşturabilirim ve iyi çalışıyor public <T extends Shape> void drawAll(List<T> shapes){ for (Shape s: shapes) { s.draw(this); } …