7 - Object Oriented Design Flashcards
All parameters are passed
by value.
When we pass an object to a method we are actually passing
a reference to that object. They become aliases of each other.
Method overloading
using the same method name with different parameter lists
method’s signature
A methods name, along with the number, type, and order of its parameter
The compilers uses the method signature to
bind a method invocation to the appropriate definition.
A good test
is one that uncovers an error.
Regression testing
is a type of software testing to confirm that a recent program or code change has not adversely affected existing features.
Defect testing
testing to find errors
test case and test suites
A test case consists of a set of inputs, user actions, or other initial conditions, along with the expected output. (Test suites are series of these tests)
black box testing
the inputs are from the user and it produces the correct output. No regard for the internal workings inside the method.
-done through equivalence category – collection of inputs that are expected to produce similar outputs.
White box testing
aka glass box testing exercises the internal structure and implementation of a method. Done through statement coverage. It tests every path the code goes.