-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bba619e
commit 80165de
Showing
11 changed files
with
18 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//Erreur signalée : tente d'accéder à une classe inexistante | ||
|
||
class A { | ||
|
||
public A(){ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// Erreur signalée : un attribut final ne peut pas être modifié | ||
|
||
class A { | ||
private static final int i = 3; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// Erreur signalée : une classe abstraite ne peut pas être instanciée | ||
|
||
abstract class A { | ||
public int b = 1; | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,16 @@ | ||
class A { | ||
public A(){ | ||
print 0; | ||
} | ||
|
||
public void m() { | ||
int a = 1; | ||
int m = 1; | ||
print 0; | ||
print 1; | ||
} | ||
|
||
public void m(int arg1) { | ||
int a = arg1 * 2; | ||
print 0; | ||
print a; | ||
} | ||
} | ||
|
||
class B extends A{ | ||
public B(int idx){ | ||
print 0; | ||
print idx; | ||
} | ||
|
||
public B(int p1, int p2){ | ||
print 0; | ||
print p1; | ||
print p2; | ||
} | ||
//Erreur signalée : l'attribut b n'existe pas | ||
|
||
class A { | ||
private void m() { | ||
a = 4; | ||
print 0; | ||
} | ||
|
||
private void print3() { | ||
print 3; | ||
this.b = 7; | ||
} | ||
|
||
} | ||
|
||
|
||
public class Main { | ||
|
||
public static void main(String args[]) { | ||
int a = 1; | ||
int m = 1; | ||
|
||
} | ||
} |
This file was deleted.
Oops, something went wrong.