Data and actions (methods).
What are the two main components of an object?
Encapsulation.
What OOP feature restricts access to an object's data?
A special method used to initialize an object when instantiated.
What is a constructor?
Integer, real (double), string, Boolean.
What are the four primary data types used in IB CS OOP?
It allows software to work across different languages and cultures using features like Unicode.
Why is internationalization important in programming?
Instantiation.
What is the term for creating an instance of a class?
When a child class derives common data and methods from a parent class.
What is inheritance?
A method that retrieves (but does not modify) an object's attribute values.
What is an accessor method?
It defines a method or variable that belongs to a class rather than an instance.
What is the purpose of the static keyword?
To encourage software collaboration, free distribution, and accessibility.
What is the primary goal of the Open Source movement?
One is a template, while the other is an instance of the first that is created.
What is the difference between an object and a class?
The ability for methods to have the same name but different parameter lists or behaviors.
What is polymorphism?
extends
What keyword is used in Java to inherit a class?
The first copies the data, while the other passes a memory address.
What is the difference between pass-by-value and pass-by-reference?
They provide reliable, reusable solutions for common tasks like sorting and searching.
What are the advantages of using pre-built libraries in OOP?
Used to visually represent object relationships.
What is UML (Unified Modeling Language) used for?
It limits side effects and dependencies, improving code security and maintainability.
Why is encapsulation beneficial?
The first variable exists only within a method, while the second variable is tied to an object and persists throughout its lifetime.
What is the difference between a local variable and an instance variable?
These are three types of loops commonly used in Java.
What are for, while, and do-while?
Ensuring software reliability, avoiding plagiarism, and acknowledging contributions.
What are the ethical obligations of programmers?
Three main relationships between objects.
What are Dependency ("uses"), Aggregation ("has a"), and Inheritance ("is a")?
It allows an external program to use the method(s) of different objects without knowing the implementation details.
What is the purpose of Abstraction?
It makes debugging, testing, and collaboration easier by breaking code into reusable components.
Why is modularity important in program development?
These are the typical selection statement constructs used in development of algorithms using the Java programming language.
What are the if, the if-else, and switch-case constructs?
This helps with the code's readability that can impact team collaboration.
How can clear naming conventions, proper indentation, and comments improve maintainability when working in terms?