最終更新日:2022/12/24
A variable's scope is the region of a program within which the variable can be referred to by its simple name. Secondarily, scope also determines when the system creates and destroys memory for the variable. Scope is distinct from visibility, which applies only to member variables and determines whether the variable can be used from outside of the class within which it is declared.
音声機能が動作しない場合はこちらをご確認ください
編集履歴(0)
元となった例文
A
variable's
scope
is
the
region
of
a
program
within
which
the
variable
can
be
referred
to
by
its
simple
name.
Secondarily,
scope
also
determines
when
the
system
creates
and
destroys
memory
for
the
variable.
Scope
is
distinct
from
visibility,
which
applies
only
to
member
variables
and
determines
whether
the
variable
can
be
used
from
outside
of
the
class
within
which
it
is
declared.