Dev_Java/Class1 instanceof 객체 instanceof 클래스명 ex) public boolean equals(MySum compare){ if(compare instanceof MySum ){ System.out.println("true"); return true; }else{ System.out.println("false"); return false; } } 2013. 10. 29. 이전 1 다음