Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SampleExtendsOverload2 {
- public static void main(String[] args) {
- C obj = new C();
- }
- }
- class A {
- A(){System.out.println("A");}
- }
- class B extends A{
- B(){System.out.println("B");}
- }
- class C extends B{
- C(){System.out.println("C");}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement