5. Java collections and Generics. 3. Generics презентация
Содержание
- 2. Generics Basics JDK 5.0 introduces generics Generics allow you to abstract
- 3. Generic Classes public class ClassName<Т>{ class body } Parametric type
- 4. Generic Objects You need to set a type in <> when
- 5. How Generics Work In the invocation all occurrences of the formal
- 6. Exercise. Print List Create a class with list of objects of
- 7. Exercise. Print List See 531FirstGeneric project for the full text
- 8. Generics Inheritance In general, if Sub is a subtype (subclass or
- 9. Generic Interfaces Generic interfaces are similar to generic classes: public interface
- 10. Generic Methods Type parameters can also be declared within method and
- 11. Generic Method Example class ArrayAlg { public static <T> T
- 12. Generic Method Call When you call a generic method, you can
- 13. Wildcards What is the supertype of all kinds of collections? Collection<Object>
- 14. Bounded Wildcards ? extends class_name ? stands for an unknown
- 15. Bounded Wildcards Example public static double sumOfList(List<? extends Number> list) {
- 16. Home Exercise 5.3.2 ( 1 of 2) Create TBill class
- 17. Home Exercise 5.3.2 (2 of 2) Create DealAnalisys class that
- 18. Manuals http://docs.oracle.com/javase/tutorial/extra/generics/index.html
- 19. Скачать презентацию

















Слайды и текст этой презентации
Скачать презентацию на тему 5. Java collections and Generics. 3. Generics можно ниже:
Похожие презентации