Java?????????????
???????????? ???????[ 2015/4/16 14:36:56 ] ????????Java ????? ?????
??????????????????????????????:
????1.???????????????????????
????2.??????????????????????????(????????????????????????)
????3.???????????????н????????????????????????(????????????????????????????????)
????4.??????????????????????????Щ???????(?????ζ?????????????????????????ζ?????????????????????????????????????????????????????????????????????)
????5.???ü?У?
??????????????????????????????
?????????????????????????????????:
????1.?????????????????
????2.???????(???????????)??????????????????????
????3.???棬?????????????
?????..??????????????
????IBread?????????????????棬?????????????(?????????????????)
????1 package ?????;
????2
????3 public interface IBread {
????4
????5 public void prepair();
????6
????7 public void kneadFlour();
????8
????9 public void steamed();
????10
????11 public void process();
????12 }
??????.???????????
1 package ?????;
2
3 public class NormalBread implements IBread{
4
5 @Override
6 public void prepair() {
7
8 System.out.println("????????????????...");
9 }
10
11 @Override
12 public void kneadFlour() {
13
14 System.out.println("????...");
15 }
16
17 @Override
18 public void steamed() {
19
20 System.out.println("?????...????????????ˉ??");
21 }
22
23 @Override
24 public void process() {
25
26 prepair();
27 kneadFlour();
28 steamed();
29 }
30
31 }
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11