0
나는이 x++
다음 코드 조각 :컴파일러 던지는 오류가 선언되지 않은 X ++
The RentalInfo variable was not declared.
로 : 컴파일러는 나에게 오류를 던지는 이유
static void Datatypes_class_variable(Args _args)
{
// Declare a class variable from the RentalInfo class
RentalInfo rentalInfo;
;
// An object is created and referenced by the
// class variable rentalInfo
rentalInfo = new RentalInfo();
// Call methods to set/get data to/from the object
rentalInfo.setCar("BMW 320");
info(strfmt("The car is a %1", rentalInfo.getCar()));
}
내가 이해가 안 돼요 변수가 이미 처음에 선언되었다는 것을 알 수 있습니다. 감사합니다.
당신 1 월을 맞아 4 호선 열에 이유 즉 나는이 하나를 놓친 믿을 수 없다. 고맙습니다! –