What is LEGB Rule?
kindly answer if you know.
Answers
Answered by
13
Answer:
Explanation:
LEGB rule
Scope also defines the order in which variables have to be mapped to the object in order to obtain the value.
Scope also defines the order in which variables have to be mapped to the object in order to obtain the value
the LEGB rule is used to decide the order in which the namespaces are to be searched for scope resolution. The scopes are listed below in terms of hierarchy(highest to lowest/narrowest to broadest): Local(L): Defined inside function/class.
Answered by
5
Answer:
the LEGB rule is used to decide the order in which the namespaces are to be searched for scope resolution. The scopes are listed below in terms of hierarchy(highest to lowest/narrowest to broadest): Local(L): Defined inside function/class.
hiiiii guys follow me......
Similar questions