Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- abstract class my {
- static int i = 0;
- my(){
- System.out.println("my constructor " + i++);
- }
- public void mymethod() {
- System.out.println("Abstract");
- }
- public my m1 = new my() {
- public void mymethod() {
- System.out.println("Inside Abstract");
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement