public class MotorCycleMain {
public static void main(String[] args){
MotorCycle c = new MotorCycle(); //메모리 있는 객체 변수 선언
c.setData(9872, 150);
c.drive();
System.out.println("객체 c : " + c); //객체 출력
System.out.println();//한줄 추가

MotorCycle m = c; //참조값복사
m.drive(); //복사된 참조값을 이용한 메서드 호출
System.out.println("객체 m : " + m); //객체 출력
} //end of main
}

 

여기에서 MotorCycle m = c로 하면 m은 메모리 할당이 안되었는데도 불구하고 m의 멤버 변수가 값을 가진다는건데 이게 말이 되는거냐? 이해가 안간다.