What is a class?
A class is a template that defines the common structure and behavior of a kind of object.
Study 2 Classes and Objects with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.
What is a class?
A class is a template that defines the common structure and behavior of a kind of object.
What is the purpose of a constructor?
A constructor initializes a new object's initial state and helps ensure required values are valid.
What is an object?
An object is a concrete instance of a class with its own identity and state.
What does instantiation mean?
Instantiation is the process of creating a concrete object from a class.
What is a field?
A field is a variable associated with a class or object that stores data.
What makes up an object's state?
An object's state is the collection of values held by its instance fields at a particular time.
What is a method?
A method is a function defined as part of a class that provides behavior for an object or class.
What does this refer to in an instance method?
Within an instance method, this commonly refers to the current object on which the method was called.
What is constructor overloading?
Constructor overloading provides multiple constructors with different parameter lists.
What is encapsulation?
Encapsulation protects an object's state by controlling access to fields through carefully designed methods or properties.
What does object identity distinguish?
Object identity distinguishes a particular object from others, even when their field values are equal.
What is aliasing?
Aliasing occurs when multiple variables or names refer to the same object.
A 14-question medium-difficulty quiz on Boolean algebra, logic gates, truth tables, and combinational circuits.
A focused set of flashcards covering Python variables, data types, expressions, control flow, functions, input, output, and common programming practices.
Learn how Boolean expressions, logical operators, and conditional structures let programs make reliable decisions, including how to handle boundaries, branch order, and testing.
Learn how computer memory stores and addresses information, how RAM and ROM differ, and how caches and the memory hierarchy balance speed, capacity, and cost.
A progressive guide to tree structure, binary-tree traversals, binary search tree operations, deletion, balancing, and the way tree height determines time and space costs.
A practical guide to integrating problem definition, data representation, modular programming, algorithms, complexity analysis, testing, correctness, and ethical evaluation into a responsible computer science capstone.
Reviews how interrupts support event handling and multitasking, and how Linux system calls use the RISC-V `ecall` instruction and register conventions.
This quiz covers process management, context switching and scheduling, multitasking, traps and interrupts, and RISC-V privilege transitions.
A quiz on operating-system system calls, including privileged-operation requests, process creation and execution with fork, exec, and waitpid, and signal handling.