Shared Flashcard Set

Details

chapter 6
stephb
29
Computer Science
Undergraduate 2
08/16/2006

Additional Computer Science Flashcards

 


 

Cards

Term
Class
Definition
blueprint for an ibject, it specifies the fields and the methods to particular type of object has. from the class, one or more objects may be created
Term
procedure
Definition
set of programming language statments that together preform a specific task
Term
an objects field is sometimes called a ?
Definition
atribibutes
Term
encapsulation
Definition
refers to the combining of data and cod into a single object
Term
data hiding
Definition
objectgs ability to ide its data from code that is outside the object
Term
object reusablility
Definition
an object is not a stand alone program, but is used by programs that need its service
Term
fields
Definition
data contained in an object is known as the objects ______

data
Term
objects contains
Definition
self contained unit consisting of data (fields)
and procedures (methods
Term
private method
Definition
external entitites, do not have direct access
Term
public methods
Definition
methods that can be accessed by entities outside the object are known as this
Term
class
aka
Definition
class can specify the fields and methods that a particular type of object may have (blueprint)
Term
instance of a class
Definition
each object that is created from a class is called this
Term
class is not an object, but a _______ of an object
Definition
discription
Term
each object is considered an ________ of a class.
Definition
instance
Term
class members
Definition
fields and methods that belong to a class are refered to by this
Term
access specifier
the member cannot be accessed only by methods that are members of the same class
Definition
private is a _________ specifier

define:

access
Term
access specifier
the member can be accessed by code inside
or outside of the class
Definition
public is an _____ specifier
define:
Term
instance header
Definition
when a method is designed to work on n instance of a class it is refered to by this
Term
access specifier
Definition
public void SetLenghth(double len)

what is public
Term
return type
Definition
public void SetLenghth(double len)
what is void
Term
method name
Definition
public void SetLenghth(double len)
what is SetLength
Term
parameter variable declaration
Definition
public void SetLenghth(double len)

what is (double len)
Term
accessor method
Definition
a method that gets a value from a classes fied but does not change tis is known as this

aka getters
Term
mutator method
Definition
a method that stores a value in a field or changes the value of a field in some other way is known as this

aka setters
Term
default constructor
Definition
-doesnt accept arguments

it sets all of the objects numeric fields to 0 and boolean fields to false.
Term
overloaded
Definition
_________ means that mulitple methods in the same class have ths same name, but uses diff types of parameters
Term
methods signature
Definition
_________ ________consists of the methods name and the data types of the methods pramaters
Term
constructor
Definition
contstructors that are overloaded means that their are more than one _________
Term
methods signature
Definition
_______ _______consists of the methods name and the data types of the methods pramaters
Supporting users have an ad free experience!