Skip to content

Commit 0ee2e1a

Browse files
committed
parent/child variable classes
1 parent 0128224 commit 0ee2e1a

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.baeldung.scope.variable;
2+
3+
/**
4+
* Created by Gebruiker on 5/7/2018.
5+
*/
6+
public class ChildVariable extends ParentVariable {
7+
8+
String instanceVariable = "parent variable";
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.baeldung.scope.variable;
2+
3+
/**
4+
* Created by Gebruiker on 5/7/2018.
5+
*/
6+
public class ParentVariable {
7+
8+
String instanceVariable = "parent variable";
9+
}

0 commit comments

Comments
 (0)