SHARE
TWEET

Untitled

a guest May 22nd, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class SampleExtendsOverload2 {
  2.  
  3.     public static void main(String[] args) {
  4.         C obj = new C();
  5.     }
  6. }
  7.  
  8. class A {
  9.     A(){System.out.println("A");}
  10. }
  11.  
  12. class B extends A{
  13.     B(){System.out.println("B");}
  14. }
  15.  
  16. class C extends B{
  17.     C(){System.out.println("C");}
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top