repositories
/
TP_POO.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a988a46
)
Add method to the Image class.
author
Jérôme Benoit
<jerome.benoit@piment-noir.org>
Wed, 14 Feb 2018 11:24:17 +0000
(12:24 +0100)
committer
Jérôme Benoit
<jerome.benoit@piment-noir.org>
Wed, 14 Feb 2018 11:24:17 +0000
(12:24 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
TP2/Image.java
patch
|
blob
|
blame
|
history
diff --git
a/TP2/Image.java
b/TP2/Image.java
index 807e11b2aec81d9a3ed836c6fb548fe468209604..ac668701251bdaeb6ea94f7eea76aacee2897e11 100644
(file)
--- a/
TP2/Image.java
+++ b/
TP2/Image.java
@@
-38,7
+38,13
@@
class Image extends Forme {
}
public boolean ajouter(Forme forme) {
- return false;
+ boolean rtVal = false;
+ if (!isFull()) {
+ formeCollection[formeNumber] = forme;
+ formeNumber = 0;
+ rtVal = true;
+ }
+ return rtVal;
}
}