Which of the following violates principle of least privilege?
(a) Modules that import packages
(b) Modules with unneeded access to files
(c) Classes with reference to Objects
(d) All of the mentioned
This question was posed to me during an online exam.
My question is based upon Modularity Principles in portion Unified Modelling Language of Software Architecture