CCB Premier Import

This commit is contained in:
Christian Cunat-Brulé
2018-07-23 10:52:48 +02:00
commit f55475a23f
765 changed files with 209793 additions and 0 deletions

19
04-SOURCES/B.java Normal file
View File

@@ -0,0 +1,19 @@
public class B extends A {
public int b ;
public static void main(String[] args) {
A objetA = new A();
B objetB = new B();
System.out.println(objetA.a);
// ERREUR DE COMPILATION :
// "b cannot be resolved or is not a field
//System.out.println(objetA.b);
System.out.println(objetB.b);
System.out.println(objetB.a);
}
}