Intro to OOP Flashcards
Class that doesn’t require instantiation
Static Class
Showing only the necessary features of an object and hiding what’s complex
Abstraction
Also known as “structured programming”
Procedure-Oriented Programming (POP)
Ability of different objects to respond (in different ways) to the same functions.
Polymorphism
They store data that can be manipulated by methods
Attributes
Where one class can inherit properties of another class.
Inheritance
(T or F) “args” in the main method cannot be renamed
False
No modifier; the member can only be accessed within its own package, and a subclass
protected
Class that should be instantiated
Non-static Class
Other terms for “Sub Class”
Derived Class, Descendant Class, Child Class
(Procedural or OOP) functions can be reused; more effort to manage data.
Procedural
Allows groups of classes to be available only when needed.
Packages
This has attributes and behaviors
Object
Eliminates potential conflicts of similarly-named classes.
Packages
An object used for sending output to the screen
System.out
Any variable declared in a class, but outside a method, constructor, or block
Instance variable
This modifier specifies that the member can only be accessed in its own package
package-private
What are the access modifiers in Java?
public, protected, package-private, private
Allows devs to create GUI
Swing Programming
Helps with understanding part of a system (code) without having to understand the entire thing.
Modularity
(Procedural or OOP) understanding of the program becomes complex as it grows.
Procedural
Everything enclosed between braces; contains the method’s code
Method body
What is the syntax used to read user input using the BufferedReader class?
BufferedReader objectName = new BufferedReader(new InputStreamReader(System.in));
(T or F) when printing, you must import the java.io.* package
False
This keyword allows other methods in the code to access it
public
Bundling attributes and methods within one unit.
Encapsulation
An empty method
Abstract Method
The program is designed as a sequence of procedures, where each one performs a task.
Procedure-Oriented Programming (POP)
A comma-delimited list of input parameters, preceded by their data types and enclosed by parentheses
Parameter list
This method belongs to a class rather than any object instance; they don’t modify object attributes and can be called on the class itself.
Static Method
When is abstract used?
When a method does not have a body
Other terms for “Super Class”
Base Class, Ancestor Class, Parent Class
This keyword means that no value will be returned
void
A process of creating objects of the class
Instantiation