Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A Java class, Database, contains a public method called printStatistics, which outputs statistical information related to that database. The printStatistics method calls another helper method,
A Java class, Database, contains a public method called printStatistics, which outputs statistical information related to that database. The printStatistics method calls another helper method, calculateMean, which is only ever used in this context it is never called from outside the Database class.
Declaring the calculateMean method with the public access modifier would be bad program design, as it is an example of
a Low method cohesion.
b Explicit coupling.
c Implicit coupling.
d Low class cohesion.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started