Procedural abstraction
________: not knowing how a method or thing was written but still using it effectively in programs as long as you know what it does.
Null
________: when the variable is not pointing to any object or does not allocate or memory.
Wrapper classes
________: converts primitive types to object types in order for methods to work with them.
Concatenation
________: the process of adding 2 string values together.
Void
________: return type, indicates what type of value is being returned from the method, indicates that the method doesnt return anything for this type.
Public Rectangle
________: example of constructor name, must match class name.
constructor
A(n) ______ can be written with no formal parameters and instead has predetermined values.
Non-void methods
________ can be stored in another variable or used in an expression.
Public
________: access specifier, determines who has access to use the method when writing classes and objects.
return type
The ________ must match the data type that is being returned from the method.
Name the class; Example
public class Rectangle
public Rectangle
example of constructor name, must match class name
(int rectWidth, int rectHeight)
Formal Parameter list, lists the type of variables that can be passed into that constructor and their variable names, should not be variable names
Procedural abstraction
not knowing how a method or thing was written but still using it effectively in programs as long as you know what it does
Methods
procedures that allow us to control and define the behavior of an object
Public
access specifier, determines who has access to use the method when writing classes and objects
printArea()
method name, named like variables, must be concise
/n
adds a line break
/t
adds a tab space
Wrapper classes
converts primitive types to object types in order for methods to work with them
Auto boxing
primitive type → wrapper class (Integer X = 4;)
Unboxing
wrapper class → primitive type (int x2 = X;)