public class 여자{
public void seeMan(Iterator manList){
while(manList.hasNext){
남자 man = manList.next();
if(man.getName() === '담당일진휴식중') continue;
man.sayHello();
}
}
}
public void seeMan(Iterator manList){
while(manList.hasNext){
남자 man = manList.next();
if(man.getName() === '담당일진휴식중') continue;
man.sayHello();
}
}
}
- dc official App
사람이란게 먼저 있고 거기서 남자/여자가 갈리며, 다른사람을 봤을때 그게 여자인지 남자인지 구분을 하는게 맞는게 아닌가요?
여자 extends 사람 할랬는데 걍 여자만 넣엇어요 - dc App
실망스럽네요