問題一覧
1
programming methodology -defines objects whose behaviors and interactions accomplish a given task
oop
2
has characteristics or attributes -value of object attributes give object states -behaviors:actions -method:behavior, piece of java
object
3
organizing classes -take on properties of objects from another class -avoid repetition -apply inheritance-'extends'
inheritance
4
program component that contains the heading -describe all the public methods-other specify certain methods -'implements'
interface
5
collections of related classes and interfaces -use all classes with program or class 'import'
package
6
methods is not used to return a value
void
7
list of variables in a method declaration
parameter
8
actual value
argument
9
declared outside the method
instance variable
10
collection of statements that grouped together to perform oepration -'this'
method
11
declared within a method definition
local variable
12
restricting access
information hiding
13
-no restriction -invoke anywhere
public
14
-name cannot be used to access it outside class definition -cannot be invoked
private
15
public method returns data from a private instance variable -getter
accessor
16
-changes the data stored in private instance variable -setter
mutator
17
process of combining data and actions into a single item -groups instnc vrbls and mthds into a class -hides implementation details
encapsulation
18
enables existing class to define new class -subclass, child class, descendant class
inheritance
19
-existing class that the derived class is built upon -superclass, parent class, ancestor class
baseclass
20
ability of an object to take many forms
polymorphism
21
-used to specify methods that a class must implement -contains headings
interface
22
keyword for package
import
23
keyword for interface
implements
24
keyword for inheritancd
extends
25
is a special method that is used to create and initialize an object
constructor
26
is shared by all the objects of its class
static variable
27
is a mrthod that can be invoked without using any subject
static method
28
occurs when multiple methods have the same name within the same class
overloading
29
desribes the structure of a class by displaying the class name
uml class diagram
30
methods name and the number and types of its paraneters are called
methods signature
31
allow many meaning to be associated to one method name
dynamic binding