diff --git a/Bird.java b/Bird.java new file mode 100644 index 0000000..787a654 --- /dev/null +++ b/Bird.java @@ -0,0 +1,48 @@ +package 鸟类与企鹅(LSP); + + +/** + * @author 方初阳 + * @version 1.0 + * @created 23-10月-2025 20:28:08 + */ +class Bird { + + private int age; + private String gender; + private String species; + + public Bird(){ + + } + + public void finalize() throws Throwable { + + } + /** + * 楦熺被杩涢琛屼负锛堟墍鏈夐笩鍏辨湁鐨勮涓猴級 + */ + public void eat(){ + + } + + public int getAge(){ + return 0; + } + + public String getSpecies(){ + return ""; + } + + /** + * + * @param s + */ + public void setAge(int s){ + + } + + public String toString(){ + return ""; + } +}//end Bird \ No newline at end of file