program elements Flashcards
object?
object = element in a program. each object has a state and set of behaviors (activities associated with the object).
attribute?
objects Attribute: values that an object stores internally.
method?
method: group of programming statements given a name. (represented and invoked by that name)
class?
Class: blueprint of an object. defines the type of data held inside the object and methods to control behaviors of those objects.
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.
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.
polymorphism?
polymorphism: refer to multiple types of objects in consistent ways.