Advertisement
Guest User

Untitled

a guest
Jun 28th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. abstract class my {
  2. static int i = 0;
  3. my(){
  4.  
  5. System.out.println("my constructor " + i++);
  6. }
  7. public void mymethod() {
  8. System.out.println("Abstract");
  9. }
  10.  
  11.  
  12. public my m1 = new my() {
  13.  
  14. public void mymethod() {
  15. System.out.println("Inside Abstract");
  16. }
  17. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement