main.cpp 340 字节
Newer Older
L
liu-jianhao 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include "NYPizzaStore.hpp"
#include "ChicagoPizzaStore.hpp"
#include "PizzaStore.hpp"
#include "Pizza.hpp"

int main()
{
    auto nyStore = new NYPizzaStore();
    auto chicagoStore = new ChicagoPizzaStore();

    auto nyCheese = nyStore->orderPizza("cheese");
    auto chicagoCheese = chicagoStore->orderPizza("cheese");

    return 0;
}