Upgrade to remove ads
Terms in this set (20)
The process of hiding and restricting access to the implementation details of a data structure.
The process by which the user of a module does not know the details of ho it is implemented, and the implementer of a module does not know the details of how it is used.
A symbol whose value cannot be changed.
Creating a new object or instance of a class.
A method that is run when an object is instantiated, usually to initialize that object's instance variables.
A method used to change the value of an attribute of an object
A method used to examine an attribute of an object without changing it.
A chunk of code that can be treated as a unit and invoked by name. A method is called when a message is sent to an object.
The name and formal parameters of a method
A method that is invoked when a message is sent to a class. For example: math.sqrt is a class method.
static int abs(int x)
Returns the absolute value of an integer
static double abs(double x)
Returns the absolute value of a double x
static double pow (double base, double exponent)
Returns the base raised to the exponent
static long round(double x)
Returns x rounded to the nearest whole number (Note: Returned value must be cast to an int before assignment to an int value)
static int max(int a, int b)
Returns the greater of a and b
static int min (int a, int b)
Returns the lesser of a and b
static double sqrt(double x)
Returns the square root of x
An operator that is used to convert a value of one type to a value of a different type (e.g. double to int)
Sets with similar terms
Cs 302 Chapter 10
java final exam
AP Comp Sci Ch.4
CSC200 Ch. 5 Quiz
Other sets by this creator
Polar Coordinates - PreCalc Chp. 9
Precalculus - Vectors
Other Quizlet sets
Study Guide for China in the Middle Ages part 3
Health Semester Review
APUSH MIDTERM- Ardoin