App.java 457 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package com.iluwatar.simplefactory;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class App {
	
	private static final Logger LOGGER = LoggerFactory.getLogger(App.class);

	public static void main(String[] args) {
		Car car1 = CarSimpleFactory.getCar(CarSimpleFactory.carTypes.FORD);
		Car car2 = CarSimpleFactory.getCar(CarSimpleFactory.carTypes.FERRARI);
		LOGGER.info(car1.getDescription());
		LOGGER.info(car2.getDescription());
	}
}