program elements Flashcards Preview

Java 1 > program elements > Flashcards

Flashcards in program elements Deck (7)
Loading flashcards...
1

object?

object = element in a program. each object has a state and set of behaviors (activities associated with the object).

2

attribute?

objects Attribute: values that an object stores internally.

3

method?

method: group of programming statements given a name. (represented and invoked by that name)

4

class?

Class: blueprint of an object. defines the type of data held inside the object and methods to control behaviors of those objects.

5

encapsulation?

Encapsulated: objects are encapsulated so that they are self governing: only changes that take place to the object is when the methods within the object occur. other objects cant effect another object.

6

inheritance?

inheritance: classes created from other classes: this is when the code is used (blueprint) from one class and copied into a new class where additional information is added or altered.

7

polymorphism?

polymorphism: refer to multiple types of objects in consistent ways.