1/7
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Object-Oriented Programming
• Object-Oriented Programming is Java, also known as OOP.
• Software objects act and interact.
• The values of an object's attributes define its state.
• A class is a blueprint for objects.
• OOP design principles:
- Encapsulation
- Polymorphism
- Inheritance
Encapsulation
• Encapsulation packages and hides details.
Polymorphism
• Polymorphism enables objects to behave appropriately.
Inheritance
• Inheritance organizes related classes.
Algorithms
• An algorithm is like a recipe.
• Algorithms are often written in pseudocode.
Pseudocode
• Pseudocode is a mixture of English and Java.
Testing and Debugging
• Syntax errors are grammatical mistakes.
• Run-time errors occur during execution.
• Logic errors are conceptual mistakes in the program or algorithm.
Example: using multiply instead of add.
Software Reuse
• Java provides a library of classes for you.