1/20
These flashcards cover key terms and concepts related to Object-Oriented Design and Decision Structures in Computer Science, particularly for the CS-201 course.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Class
A blueprint or template for creating objects that specifies fields and methods.
Object
An instance created from a class containing data and procedures.
Instance
A specific object created from a class.
Method
A procedure or behavior that can be performed by an object.
Field/Attribute
Data contained in an object.
UML Class Diagram
A diagram used to represent the classes and their relationships in object-oriented design.
Accessor Method
A method that retrieves or accesses data from an object.
Mutator Method
A method that modifies or mutates the value of an object's field.
Static Variable
A variable that is shared among all instances of a class.
Instance Variable
A variable that is unique to each instance of a class.
Conditional Operator
A ternary operator that provides a shorthand method for expressing a simple if-else statement.
Switch Statement
A control statement that allows variable testing against multiple values.
Logical Operators
Operators that connect two or more relational expressions to alter or combine their logic.
Nested IF Statement
An if statement placed inside another if statement to test multiple conditions.
Scanner Class
A class used to read input from various sources, primarily user input from the keyboard in Java.
DecimalFormat Class
A class used to format numbers to specific patterns, such as decimal places.
Ternary Operator
An operator that takes three operands and is used to create concise conditional expressions.
IF-ELSE Statement
A control structure that executes one block of statements if a condition is true, and another block if it is false.
Relational Operators
Operators used to compare two values, returning true or false based on the comparison.
Instance Method
A method that is called on an object and has access to instance variables.
Static Method
A method that belongs to a class rather than any specific instance; it can be called without creating an object.