Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface SomeClass{
- void doSomething();
- }
- public class MainClass{
- public static void main(String args[]){
- SomeClass someClass = new SomeClass(){
- @Override
- void doSomething(){
- System.out.println("Any text");
- }
- }
- someClass.doSomething();
- }
- }
Add Comment
Please, Sign In to add comment