Variable scope ● scope: The part of a program where a variable exists. – From its declaration to the end of the { } braces ● A variable declared in a for loop exists only in that loop. ● A variable declared in a method exists only in that method.
ขอบเขตตัวแปรขอบเขต●: เป็นส่วนหนึ่งของโปรแกรมที่มีอยู่ของตัวแปร– จากการประกาศการสิ้นสุดของวงเล็บปีกกา{}● A แปรที่ประกาศในการสำหรับวงอยู่เฉพาะในวงที่แปร A ●ประกาศในวิธีการที่มีอยู่เฉพาะในวิธีการที่