0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

OOP的中国語講座

0
Posted at

注意

Markdownの練習を兼ねたネタ投稿です。

Chinese.java
public class Chinese implements Weedable{
    @Override
    public String weed(){
        return "Fxxk";
    }
}
Japanese.java
public class Japanese implements Weedable{
    @Override
    public String weed(){
        return "LOL";
    }
}
Main.java
public Class Main{
    public static void main(String[] args){
        Weedable chinese = new Chinese();
        Weedable japanese = new Japanese();
        System.out.println(chinese.weed()); // "Fxxk"
        System.out.println(japanese.weed()); // "LOL"
    }
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?