Created
March 22, 2018 03:10
-
-
Save arrbxr/67054cf6d4fea7cd650f7717f9344b3f to your computer and use it in GitHub Desktop.
Super class constructor in java created by arrbxr - https://repl.it/@arrbxr/Super-class-constructor-in-java
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 characters
| class Main { | |
| public static void main(String[] args) { | |
| b obj = new b(); | |
| } | |
| } | |
| class a{ | |
| public a(){ | |
| System.out.println("class a"); | |
| } | |
| public a(int b){ | |
| System.out.println(b); | |
| } | |
| } | |
| class b extends a{ | |
| public b(){ | |
| //super(50); | |
| System.out.println("b"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment