diff options
author | bk2dcradle <ankitsultana@gmail.com> | 2015-10-05 01:38:02 +0530 |
---|---|---|
committer | bk2dcradle <ankitsultana@gmail.com> | 2015-10-05 01:38:02 +0530 |
commit | d8efd3ba3416669177683887b2822eb5d56c157b (patch) | |
tree | 6366eceb5507612989a2ef8709e8bcf2b54f8ce9 /java.html.markdown | |
parent | 6b6f88c64d9a4b2d26de5725dee24f3c459fb93c (diff) |
Modified as said to by a Collaborator
Diffstat (limited to 'java.html.markdown')
-rw-r--r-- | java.html.markdown | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java.html.markdown b/java.html.markdown index 2f41be81..89a710ee 100644 --- a/java.html.markdown +++ b/java.html.markdown @@ -477,9 +477,9 @@ public abstract class Animal age = 30; } - // No need to initialise, however in an interface + // No need to initialize, however in an interface // a variable is implicitly final and hence has - // to be initialised. + // to be initialized. private int age; public void printAge() @@ -509,7 +509,7 @@ class Dog extends Animal // @Override annotation here, since java doesn't allow // overriding of static methods. // What is happening here is called METHOD HIDING. - // Check out this awesome SO post: (http://stackoverflow.com/questions/16313649/) + // Check out this awesome SO post: http://stackoverflow.com/questions/16313649/ public static void main(String[] args) { Dog pluto = new Dog(); |