module 6 terms - ap computer science a

TermDescription
Access LevelDetermines the level of access other files have to the class’s data or methods.
AttributesStores an Object’s data.
ClassA blueprint for what an Object  stores and how it behaves.
Class AttributeThe Attribute is created once and it shared between all instances of the class. Class attributes can be accessed through the class name like Math.PI
Class MethodCan only access class attributes. Class methods can be accessed through the class name like Math.pow()
ConstructorsSpecial methods used for constructing an Object.
Default ConstructorA constructor that receives 0 parameters. When a class has 0 constructors a hidden default constructor is create that will set all objects to null, booleans to false and all other primitives to 0.
EncapsulationThe combining of data (attributes) into a class.
equalsA method used to check equality of two Objects.
finalUsed to make a variable constant.
Accessor/GetterA method that allows public access to a private attribute.
Information HidingWhen classes store their data privately prevent unwanted modifications.
Instance AttributeEvery instance of an Object gets its own copy of the variable.
Instance MethodsCan access both instance and class variables. Can only be accessed through an instance of class.
ModifiersSets method or attribute properties.
nullA keyword used to denote that a variable is not referencing any Object.
packageA group of related classes.
privateData cannot be accessed outside the file.
protectedData can be modified by classes that share the same package or any subclass.
publicData can be fully accessed outside the file.
Mutator/SetterA method that allow private attributes to be changed publicly
staticSets an attribute or method to be a class attribute or class method.
thisA keyword used to access the current instance of the class.
toStringA method used to return a text version of an Object.

Â