class cricket{
void bat(){
System.out.println("sachin");
}
public static void main(String ar[]){
cricket cricket=new cricket();
cricket.bat();
}
}
출력 : sachin만드는 개체
오브젝트 이름은 possible..the 프로그램이 이유는 정확 output.wt이다주고있다 name..how 클래스와 동일하다?
명확하고 쉽게 이해할 수있는 대답을 주신 것에 대해 감사드립니다. –