private, file-private, public, internal, open — “Access control restricts access to parts of your code from code in other source files and modules. This feature enables you to hide the implementation details of your code, and to specify a preferred interface through which that code can be accessed and used.” Swift programming language has 5 different…