Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javafx.util.Pair;
- import java.util.HashMap;
- interface Robi{
- void show();
- }
- abstract class Amber{
- void show(){
- System.out.println("hello");
- }
- }
- public class myself {
- public static void main(String[] args) {
- Amber amber = new Amber() {
- @Override
- public void show() {
- super.show();
- }
- };
- Robi robi = new Robi() {
- @Override
- public void show() {
- System.out.println("fsdsfd");
- }
- };
- amber.show();
- robi.show();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement