click below
click below
Normal Size Small Size show me how
UNIT 1 CS-A
Terms
Term | Definition |
---|---|
Accessor | A method in a Java class that is used to retrieve the value of an object's attribute (a field or property) without modifying it.(getter) |
Actual Parameter | Real value used during method execution |
Argument | Value in brackets that is passed to the method |
Banner Comment | Comment at beginning of code that does basic name/date info |
Class | Blueprint for creating objects |
Class Delaration | The code that defines a class in Java, specifying its attributes and methods. |
Code Block | A section of code enclosed within curly braces {} |
Code Body | The part of a method that contains the statements to be executed when the method is called. |
Constant | A variable that cannot be changes |
Construct/instantiate | create an object |
Constructor | A special method in a Java class that is used to initialize an object when it is created. Constructors have the same name as the class and are invoked with the "new" keyword. |
Delcare | Give a variable its type |
Default Constructor | A constructor in a Java class that is automatically provided if no constructors are explicitly defined. It initializes the object with default values. |
Encapsulation | The concept of restricting access to the internal state of an object and only allowing controlled access through methods. Encapsulation in Java is a process of wrapping code and data together into a single unit, |
Explicit/Formal Parameter | A parameter that is explicitly declared and specified in a method's parameter list. |
Identifier | A name used to identify a variable, class, method, or other program elements in Java. |
Implicit Parameter | field |
Information Hiding | Showing only the important information |
Initialize | To set the initial value of a variable or object attribute. |
Instance | Object from a class |
Instance Variables(field, attribute) | Variable for only that specific class |
Java Reserved Word | Words that cannot be used to name variables and classes |
Lifetime | When you can access a variable |
Local Variable | Parameters and variables that exist only within their own method |
Method | Function within a class that does something |
Method Body | What the method is doing |
Method Comment | Comment that provides information about the method |
Method Signature | The combination of a method's name and its parameter list, used to uniquely identify and distinguish methods in a class. |
Mutator | Modifies that value of an objects attributes(setter) |
Object | Instance created from a class |
Object(reference type) | The data type that represents a reference to an object |
Parameter | A value passed to a method when it is called, which is used as input in the method's execution. |
Parameter list | List of parameters a method cannot accept |
Primitive type | Variable that stores int, double values |
Public interface | The part of a class that specifies the methods and attributes that are accessible to other classes. It defines how other classes can interact with the class. |
Return Statement | A statement used to exit a method and return a value to the caller, if the method has a return type other than "void." |
Return type | The data type that specifies the type of value a method will return when it is called. |
Scope | Where you can access a variable |
State | Set of all attributes |
Static | When a variable is declared static in Java programming, it means that the variable belongs to the class itself rather than to any specific instance of the class. |
Null | It is just a value that shows that the object is referring to nothing. |