Vocab Flashcards
Wrapper class
Wrapper classes provide a way to use primitive data types (int, boolean, etc..) as objects.
Use the capitals: Int not int
Autoboxing
automatic conversion that the Java compiler makes between the primitive types and their corresponding object wrapper classes
this
refers to the current object in the method or constructor
new
used to create a new instance of a class
Static variables
variables lifetime is the full time the program is running
Static method
-method belongs to the class not the instance of the class
-method is accessible to every instance of a class but methods defined in an instance are only able to be accessed by that object of the class
Instance variables
variable which is declared in a class but outside of constructors, methods, or blocks
Instance Constants
variable whose value never changes
Polymorphism
ability of a class to provide different implementations of a method, depending on the type of object that is passed to the method
Inheritance
create new classes that inherit features of the superclass
super
constructor call
super.method()
call parent method
default access
same class and same package
private access
only that class
protected access
Same class, same package, and different package subclass