Chapter 7 Flashcards
What five steps are required to run a test?
1) Decide which method you want to test
2) Set up a known situation
3) Determine the expected result of executing the method
4) Execute the method
5) Verify the results
What are the six numeric types?
byte, short, int, long, float, double
What is enumerations?
When you declare multiple values in the same line, they all must have the same type.
Define casting
When we assign a specific type to the answer of an arithmetic operation
Define a class variable
Relates to the class as a whole rather than just an individual object
What are the 3 differences between a class and an interface?
1) An interface uses the keyword interface instead of class
2) An interface cannot extend a class
3) Method bodies are omitted in an interface