Test.java 532 字节
Newer Older
ツぃ☆ve芜情's avatar
ツぃ☆ve芜情 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
package com.ice.creation.FactoryPattern;

/**
 * @author ice
 * @blog https://blog.csdn.net/dreaming_coder
 * @description
 * @create 2021-10-08 12:31:23
 */
public class Test {
    public static void main(String[] args) {
        System.out.println("======第一次物流======");
        Logistics seaLogistics = new SeaLogistics();
        seaLogistics.playDelivery();
        System.out.println("======第二次物流======");
        Logistics roadLogistics = new RoadLogistics();
        roadLogistics.playDelivery();
    }
}