Pls, help me see where is mistake in this Description. They can be real pain in the ass sometimes
package pl.codegym.task.task14.task1408;
/*
Ferma drobiu
*/
public class Solution {
public static void main(String[] args) {
Hen hen = HenFactory.getHen(Continent.AFRICA);
hen.getMonthlyEggCount();
}
static class HenFactory {
static Hen getHen(String continent) {
Hen hen = null;
if (continent.equals("Afryka")){
hen = new AfricanHen();
}else if (continent.equals("Azja")){
hen = new AsianHen();
}else if (continent.equals("Ameryka Północna")){
hen = new NorthAmericanHen();
}else if (continent.equals("Europa")){
hen = new EuropeanHen();
}
return hen;
}
}
}