diff --git "a/deuxi\303\250meEssai/A.class" "b/deuxi\303\250meEssai/A.class" index 9c71a73..92121da 100644 Binary files "a/deuxi\303\250meEssai/A.class" and "b/deuxi\303\250meEssai/A.class" differ diff --git "a/deuxi\303\250meEssai/A.java" "b/deuxi\303\250meEssai/A.java" index 3739cdc..78d31be 100644 --- "a/deuxi\303\250meEssai/A.java" +++ "b/deuxi\303\250meEssai/A.java" @@ -17,6 +17,7 @@ public A() { // initialisation des variables d'instance x = 0; + System.out.println("Im in class a"); } /** diff --git "a/deuxi\303\250meEssai/B.class" "b/deuxi\303\250meEssai/B.class" index 32b5632..270e498 100644 Binary files "a/deuxi\303\250meEssai/B.class" and "b/deuxi\303\250meEssai/B.class" differ diff --git "a/deuxi\303\250meEssai/B.java" "b/deuxi\303\250meEssai/B.java" index 80bffd9..0c3760d 100644 --- "a/deuxi\303\250meEssai/B.java" +++ "b/deuxi\303\250meEssai/B.java" @@ -17,6 +17,7 @@ public B() { // initialisation des variables d'instance x = 0; + System.out.println("Im in class B extends A"); } /** diff --git "a/deuxi\303\250meEssai/Test.class" "b/deuxi\303\250meEssai/Test.class" new file mode 100644 index 0000000..a78bf38 Binary files /dev/null and "b/deuxi\303\250meEssai/Test.class" differ diff --git "a/deuxi\303\250meEssai/Test.ctxt" "b/deuxi\303\250meEssai/Test.ctxt" new file mode 100644 index 0000000..09be5de --- /dev/null +++ "b/deuxi\303\250meEssai/Test.ctxt" @@ -0,0 +1,7 @@ +#BlueJ class context +comment0.target=Test +comment0.text=\r\n\ Write\ a\ description\ of\ class\ Test\ here.\r\n\r\n\ @author\ (your\ name)\r\n\ @version\ (a\ version\ number\ or\ a\ date)\r\n +comment1.params=args +comment1.target=void\ main(java.lang.String[]) +comment1.text=\r\n\ Constructor\ for\ objects\ of\ class\ Test\r\n +numComments=2 diff --git "a/deuxi\303\250meEssai/Test.java" "b/deuxi\303\250meEssai/Test.java" new file mode 100644 index 0000000..561cb46 --- /dev/null +++ "b/deuxi\303\250meEssai/Test.java" @@ -0,0 +1,31 @@ + +/** + * Write a description of class Test here. + * + * @author (your name) + * @version (a version number or a date) + */ +public class Test +{ + // instance variables - replace the example below with your own + private int x; + + /** + * Constructor for objects of class Test + */ + public static void main (String[] args) { + System.out.print('\u000C'); + A a= new A(); + + + // justifier cette écriture + System.out.print('\u000C'); + B b= new B(); + + // justifier cette écriture +// les trois instructions retourne le même résultat... + + } + + +} diff --git "a/deuxi\303\250meEssai/package.bluej" "b/deuxi\303\250meEssai/package.bluej" index 563e146..32b8b10 100644 --- "a/deuxi\303\250meEssai/package.bluej" +++ "b/deuxi\303\250meEssai/package.bluej" @@ -1,26 +1,32 @@ #BlueJ package file +dependency1.from=Test +dependency1.to=A +dependency1.type=UsesDependency +dependency2.from=Test +dependency2.to=B +dependency2.type=UsesDependency editor.fx.0.height=739 editor.fx.0.width=816 editor.fx.0.x=245 editor.fx.0.y=44 -objectbench.height=93 +objectbench.height=74 objectbench.width=1208 package.divider.horizontal=0.6 -package.divider.vertical=0.8319327731092437 -package.editor.height=488 -package.editor.width=1089 +package.divider.vertical=0.8638655462184874 +package.editor.height=507 +package.editor.width=1118 package.editor.x=25 package.editor.y=45 package.frame.height=695 package.frame.width=1248 -package.numDependencies=0 -package.numTargets=2 +package.numDependencies=2 +package.numTargets=3 package.showExtends=true package.showUses=true project.charset=UTF-8 -readme.height=58 +readme.height=60 readme.name=@README -readme.width=47 +readme.width=49 readme.x=10 readme.y=10 target1.height=50 @@ -29,7 +35,7 @@ target1.showInterface=false target1.type=ClassTarget target1.width=80 target1.x=70 -target1.y=10 +target1.y=20 target2.height=50 target2.name=B target2.showInterface=false @@ -37,3 +43,10 @@ target2.type=ClassTarget target2.width=80 target2.x=60 target2.y=140 +target3.height=70 +target3.name=Test +target3.showInterface=false +target3.type=ClassTarget +target3.width=120 +target3.x=220 +target3.y=80 diff --git a/premierEssai/MainA.class b/premierEssai/MainA.class new file mode 100644 index 0000000..c766322 Binary files /dev/null and b/premierEssai/MainA.class differ diff --git a/premierEssai/MainA.ctxt b/premierEssai/MainA.ctxt new file mode 100644 index 0000000..b3f69d4 --- /dev/null +++ b/premierEssai/MainA.ctxt @@ -0,0 +1,6 @@ +#BlueJ class context +comment0.target=MainA +comment0.text=\r\n\ Write\ a\ description\ of\ class\ MainA\ here.\r\n\r\n\ @author\ (your\ name)\r\n\ @version\ (a\ version\ number\ or\ a\ date)\r\n +comment1.params=args +comment1.target=void\ main(java.lang.String[]) +numComments=2 diff --git a/premierEssai/MainA.java b/premierEssai/MainA.java new file mode 100644 index 0000000..8155232 --- /dev/null +++ b/premierEssai/MainA.java @@ -0,0 +1,21 @@ + +/** + * Write a description of class MainA here. + * + * @author (your name) + * @version (a version number or a date) + */ +public class MainA +{ + public static void main (String[] args) { + A hello= new A(); + System.out.print('\u000C'); + for (int i=0;i<5;i++) + System.out.println("This is class A"+i); // justifier cette écriture + + + // justifier cette écriture +// les trois instructions retourne le même résultat... + + } +} diff --git a/premierEssai/package.bluej b/premierEssai/package.bluej index df486fa..a5b261d 100644 --- a/premierEssai/package.bluej +++ b/premierEssai/package.bluej @@ -1,26 +1,29 @@ #BlueJ package file +dependency1.from=MainA +dependency1.to=A +dependency1.type=UsesDependency editor.fx.0.height=739 editor.fx.0.width=816 -editor.fx.0.x=710 -editor.fx.0.y=128 -objectbench.height=93 +editor.fx.0.x=275 +editor.fx.0.y=-4 +objectbench.height=71 objectbench.width=1233 package.divider.horizontal=0.6 -package.divider.vertical=0.8379254457050244 -package.editor.height=510 -package.editor.width=1114 +package.divider.vertical=0.873581847649919 +package.editor.height=532 +package.editor.width=1143 package.editor.x=5 package.editor.y=25 package.frame.height=717 package.frame.width=1273 -package.numDependencies=0 -package.numTargets=1 +package.numDependencies=1 +package.numTargets=2 package.showExtends=true package.showUses=true project.charset=UTF-8 -readme.height=58 +readme.height=60 readme.name=@README -readme.width=47 +readme.width=49 readme.x=10 readme.y=10 target1.height=50 @@ -30,3 +33,10 @@ target1.type=ClassTarget target1.width=80 target1.x=260 target1.y=160 +target2.height=70 +target2.name=MainA +target2.showInterface=false +target2.type=ClassTarget +target2.width=120 +target2.x=70 +target2.y=10