Ch. 4 Flashcards
What does it mean when something returns a value?
It’s doing some kind of calculation
What does it mean when something does not return a value?
It’s printing a statement, not much math
When something is in parentheses before the method, what does it mean?
It’s being inputted
What is an instance variable?
Variables associated with a class we write, like characteristics
What is a class like?
A template to create objects
What is encapsulation?
Keeping data at a level that is appropriate for that sort of data
What is a private variable?
A variable that will not be seen outside of the class.
What is method declaration?
Making a method to do something
What is method invocation?
Using a method
What is paramater passing?
Inputting something into a method then passing it along to something else
What is method overloading?
When you use different versions of the same methods that allow for multiple parameters
What is object state?
Descriptive characteristics that would call for using an instance variable
What is an object behavior?
What an object can do or what you can do with it
What does a class contain?
Data and method declarations
What is a data declaration?
A form of instance variable
What is scope?
Where data can be seen and used
What is local data?
Data declared in a method that can only be used in that method
What is a package?
A collection of code put together, like a higher level piece that catches a bunch of projects at once
Where can data declaredat the class level be used?
All methods in the class
Where can data declared in a method be used?
That method only
What level is the class level?
The top layer
What is instance data?
A value assigned to an instance variable specific to each class
What do objects of a method share?
Method definitions but not data space
What is an internal view?
Objects hold variables and methods that make it useful
What is an external view?
The services an object provides and its interactions
What is an external view in essence?
Encapsulated/abstract
What is interface?
How objects interact
How do objects behave?
Self governing and separate
How do object state changes occur?
By its methods