Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Test {
- public static void main(String[] d) {
- Sub s = new Sub('a');
- }
- }
- class Base
- {
- Base()
- {
- System.out.println("Base constructor called");
- }
- }
- class Sub extends Base
- {
- Sub(){};
- Sub (int x) {}
- Sub(char c){};
- }
Advertisement
Add Comment
Please, Sign In to add comment