+1 vote
in Software Architecture by (75.2k points)
When is a variable called extending access beyond visibility?

(a) Passing a reference as an argument

(b) Passing an argument by reference (which uses aliasing)

(c) Returning a reference from a sub-program

(d) All of the mentioned

The question was asked during an online exam.

This interesting question is from Visibility, Accessibility and Information Hiding in portion Visibility, Accessibility and Information Hiding of Software Architecture

1 Answer

0 votes
by (46.2k points)
Correct option is (d) All of the mentioned

The explanation: Making a variable accessible in a portion of a program where it is not visible is called extending access beyond visibility while Passing a reference as an argument, Passing an argument by reference (which uses aliasing), Returning a reference from a sub-program.

Related questions

We welcome you to Carrieradda QnA with open heart. Our small community of enthusiastic learners are very helpful and supportive. Here on this platform you can ask questions and receive answers from other members of the community. We also monitor posted questions and answers periodically to maintain the quality and integrity of the platform. Hope you will join our beautiful community
...