Last active
August 29, 2015 14:03
-
-
Save PShchahelski/8bd07c4606d88168e7d8 to your computer and use it in GitHub Desktop.
Revisions
-
PShchahelski revised this gist
Jun 25, 2014 . 3 changed files with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.File renamed without changes.File renamed without changes. -
PShchahelski created this gist
Jun 25, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ package com.test; public class ClassA { public ClassA() { System.out.println("ClassA()"); method(); } public void method() { System.out.println("ClassA.method()"); } } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ package com.test; public class ClassB extends ClassA { private static final Point POINT = new Point(0, 0); private final String mString = "Hello world"; private final Point mPoint = new Point(1, 1); public ClassB() { super(); System.out.println("ClassB(): " + POINT + " / " + mString + " / " + mPoint); } @Override public void method() { System.out.println("ClassB.method(): " + POINT + " / " + mString + " / " + mPoint); super.method(); } public static void main(String[] args) { new ClassB(); } } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ package com.test; public class Point { public final int x; public final int y; public Point(int x, int y) { this.x = x; this.y = y; } @Override public String toString() { return "Point(" + x + ", " + y + ")"; } }