Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Init.java
- package jason;
- public class Init {
- public static void main(String[] args) {
- new Son.Sson().action(); //action
- new Son.Sson(){
- void action(){
- System.out.println("main - action");
- }
- }.action(); //main - action
- }
- }
- // Son.java
- package jason;
- public class Son {
- static class Sson{
- void action(){
- System.out.println("action");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment