Week 13 Flashcards
1
Q
- Implementation Hiding means
A
o Hiding the details of how a method works
2
Q
- Method cohesion
A
o A measure of how the internal statements serve to accomplish the methods purpose
3
Q
- A method with high cohesion has all of it’s ________ operarions
A
o Has all its internal operations focused on one task or goal
4
Q
- Low cohesion method traits
A
o Tries to do too many things
5
Q
- noticeable high cohesion method traits
A
o Easy to read, maintain, reliable
6
Q
o How much methods are connected/share information
A
- Method Coupling
7
Q
- Methods that are interdependent on each other have
A
o Tight coupling
8
Q
- Methods that are not interdependent
A
o Loose coupling
o Can be called in any order
9
Q
- Tightly coupled methods are known to use _____ level variables
A
o class
10
Q
- Tightly coupled methods are ____ to understand, and hard to ________
A
o Hard, maintain
11
Q
- T/F - Tightly coupled methods often have to be called in a certain order to work properly
A
o True
12
Q
- T/F – Global variables should be avoided to prevent tight coupling
A
o True (although Java does not have global vars, closest thing is a public class var)
13
Q
- T/F – A method with tight coupling and low cohesion is strong
A
o False
14
Q
- The word fragile is used to describe tight coupling and low cohesion
A
o True
15
Q
- What makes a good class?
A
o Represents a single concept