TP-programmation-orientee-o.../TP15/notes.md

17 lines
365 B
Markdown
Raw Permalink Normal View History

2023-06-20 19:02:09 +00:00
# Exercice 1
1. Oui ArrayList est un sous-type de de List
2. String est un sous-type de Object, mais ArrayList<String> pas un sous-type de ArrayList<Object>
3. NON, à cause du bug q2
# Exercice 2
1. oui
2. Compile, maios exception lors execution
# Exercice 3
1. non, signature ligne 8 non compatible avec appel ligne 21
2.
3. ? remplacer Object
# Exercice 4