1/20
Vocabulary flashcards covering access modifiers, inheritance, the Object class, polymorphism, dynamic binding, casting, and object cloning in Java.
Protected Access
An access modifier that allows a method or instance variable to be accessed by name inside its own class definition, inside any class derived from it, and inside the definition of any class in the same package.
Package Access
The default access level (also known as friendly access) assigned to an instance variable or method definition that has no modifier, restricting direct access by name strictly to classes within the same package.
Default Package
An unnamed package containing all classes in the current directory that do not belong to an explicitly specified package.

Java Access Modifiers Summary Diagram
A visual summary of member access rules showing that public members (v1) are accessible everywhere; protected members (v2) are accessible within the package and to derived subclasses outside it; package-access members (v3) are accessible only within the package; and private members (v4) are accessible solely within the defining class.
"Is a" Relationship
A relationship formed through inheritance where a derived class represents a specialized version of its base class, such as an HourlyEmployee being an Employee.
Composition
A "has a" relationship where a more complex class is constructed by including an instance variable of another class type, such as an Employee class containing a Date instance variable named hireDate.
super Keyword
A keyword used within a derived class method definition, followed by a dot, to invoke the base class version of an overridden method from its direct parent class.
Object Class
The ultimate ancestor of every class in Java, defined in the automatically imported java.lang package, ensuring every object is of type Object.
Overridden equals Method
A method with the signature public boolean equals(Object otherObject) that verifies the parameter is non-null, checks that getClass() matches exactly, type casts the parameter to the specific class, and compares instance variables.
getClass() Method
A final method inherited from the Object class that returns a representation only of the exact class used with new to instantiate the object, allowing precise class equality comparisons with == or !=.
instanceof Operator
A binary operator that returns true if the tested object is an instance of the specified class or an instance of any descendent class of that class.
Polymorphism
One of the three central OOP mechanisms (along with encapsulation and inheritance) that allows a single method name to have multiple meanings via late binding.
Early Binding
The process of associating a method definition with a method invocation at compile time.
Late Binding (Dynamic Binding)
The process of associating a method definition with its invocation at run time when the method is called; Java applies late binding to all methods except private, final, and static methods.
Static Binding
A compile-time association of a method definition based on the declared type of the variable naming the object, used by Java for private, final, and static methods.
final Modifier
A modifier indicating that a method cannot be overridden in a derived class (permitting early binding) or that a class cannot be extended as a base class.
Upcasting
The assignment of an object of a derived class to a variable of its base class or any of its ancestor classes.
Downcasting
An explicit type cast from a base class type to a derived class type (or from an ancestor class to a descendent class), which risks a run-time error if the object is not an instance of the specified type.
clone Method
A parameterless method inherited from the Object class (declared as protected Object clone()) intended to be overridden with a public method that returns a deep copy of the calling object.
Covariant Return Type
A feature introduced in Java version 5.0 permitting an overriding method definition to change its return type to a descendent class of the return type declared in the ancestor method.
Limitation of Copy Constructors
The architectural limitation wherein copy constructors cannot create polymorphic copies when invoked through base class references, slicing derived objects into plain base objects unlike the clone method.