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