diff options
Diffstat (limited to 'test/cuchaz/enigma/inputs/inheritanceTree/SubclassB.java')
| -rw-r--r-- | test/cuchaz/enigma/inputs/inheritanceTree/SubclassB.java | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/test/cuchaz/enigma/inputs/inheritanceTree/SubclassB.java b/test/cuchaz/enigma/inputs/inheritanceTree/SubclassB.java index fc4c8ee..c9485d3 100644 --- a/test/cuchaz/enigma/inputs/inheritanceTree/SubclassB.java +++ b/test/cuchaz/enigma/inputs/inheritanceTree/SubclassB.java | |||
| @@ -1,16 +1,15 @@ | |||
| 1 | package cuchaz.enigma.inputs.inheritanceTree; | 1 | package cuchaz.enigma.inputs.inheritanceTree; |
| 2 | 2 | ||
| 3 | // none/c extends none/a | 3 | // none/c extends none/a |
| 4 | public class SubclassB extends BaseClass | 4 | public class SubclassB extends BaseClass { |
| 5 | { | 5 | |
| 6 | // a | 6 | // a |
| 7 | private int m_numThings; | 7 | private int m_numThings; |
| 8 | 8 | ||
| 9 | // <init>()V | 9 | // <init>()V |
| 10 | protected SubclassB( ) | 10 | protected SubclassB() { |
| 11 | { | ||
| 12 | // none/a.<init>(Ljava/lang/String;)V | 11 | // none/a.<init>(Ljava/lang/String;)V |
| 13 | super( "B" ); | 12 | super("B"); |
| 14 | 13 | ||
| 15 | // access to a | 14 | // access to a |
| 16 | m_numThings = 4; | 15 | m_numThings = 4; |
| @@ -18,16 +17,14 @@ public class SubclassB extends BaseClass | |||
| 18 | 17 | ||
| 19 | @Override | 18 | @Override |
| 20 | // a()V | 19 | // a()V |
| 21 | public void doBaseThings( ) | 20 | public void doBaseThings() { |
| 22 | { | ||
| 23 | // call to none/a.a()Ljava/lang/String; | 21 | // call to none/a.a()Ljava/lang/String; |
| 24 | System.out.println( "Base things by B! " + getName() ); | 22 | System.out.println("Base things by B! " + getName()); |
| 25 | } | 23 | } |
| 26 | 24 | ||
| 27 | // b()V | 25 | // b()V |
| 28 | public void doBThings( ) | 26 | public void doBThings() { |
| 29 | { | ||
| 30 | // access to a | 27 | // access to a |
| 31 | System.out.println( "" + m_numThings + " B things!" ); | 28 | System.out.println("" + m_numThings + " B things!"); |
| 32 | } | 29 | } |
| 33 | } | 30 | } |