Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firt creation for files #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified deuxièmeEssai/A.class
Binary file not shown.
1 change: 1 addition & 0 deletions deuxièmeEssai/A.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public A()
{
// initialisation des variables d'instance
x = 0;
System.out.println("Im in class a");
}

/**
Expand Down
Binary file modified deuxièmeEssai/B.class
Binary file not shown.
1 change: 1 addition & 0 deletions deuxièmeEssai/B.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public B()
{
// initialisation des variables d'instance
x = 0;
System.out.println("Im in class B extends A");
}

/**
Expand Down
Binary file added deuxièmeEssai/Test.class
Binary file not shown.
7 changes: 7 additions & 0 deletions deuxièmeEssai/Test.ctxt
Original file line number Diff line number Diff line change
@@ -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
31 changes: 31 additions & 0 deletions deuxièmeEssai/Test.java
Original file line number Diff line number Diff line change
@@ -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...

}


}
31 changes: 22 additions & 9 deletions deuxièmeEssai/package.bluej
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -29,11 +35,18 @@ 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
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
Binary file added premierEssai/MainA.class
Binary file not shown.
6 changes: 6 additions & 0 deletions premierEssai/MainA.ctxt
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions premierEssai/MainA.java
Original file line number Diff line number Diff line change
@@ -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...

}
}
30 changes: 20 additions & 10 deletions premierEssai/package.bluej
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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