Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package tesztelek;
- interface Szia{
- String kiir();
- }
- public class Tesztelek {
- public static void main(String[] args){
- new Kiiras(
- new Szia(){
- @Override
- public String kiir(){
- return "Szia";
- }
- }
- );
- }
- }
- class Kiiras{
- Szia s;
- Kiiras(Szia s){
- this.s = s;
- System.out.println(s.kiir());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement