Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://blog.naver.com/euro87?Redirect=Log&logNo=120184592615
- // Anonymous Inner Class => No need for the object of class
- // Need for ActionListener, Runnable interface
- public class A{
- int x;
- public void test(){
- //...
- }
- }
- A a = new A(){ // No need for the object of class
- public void test(){
- // ... // ----> Overriding
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment