W2 Flashcards
Computer programming is the process of _________ and ____________ computer programs
designing and implementing
Definition: A set of procedure calls and a set of code for each procedure
Procedural programming
Definition: Breaking a program down into smaller modules and putting emphasis on separating the program data from its functionality
Structured programming
3 advantages of structured programming over procedural
Easier to…
Easier to understand, fix, and modify
OOP is a paradigm which real-world objects are viewed as separate ________ having their own _____ that can only be changed by using built in __________ that are called _______
entities, state, procedures, methods
3 Benefits of OOP
EIE
- Easy to reuse code
- Extension (inheritance)
- Encapsulation and information hiding
1 and 2 are the major difference between OOP and other paradigms,
Object Oriented Analysis and Design (OOAD):
Define - Requirements Analysis
Determine the projects requirements, in other words determine what the program should do
Object Oriented Analysis and Design (OOAD):
Define - Design
Develop a design that satisfies the Requirements Analysis, in this step you determine HOW the program should do it
Object Oriented Analysis and Design (OOAD):
Define - Review
Review the design/plan before writing
Objects are ________ software components
reusable
The process of hiding some details from the user and showing just the essential information
Abstraction
The process of binding together data and code that acts on that data as a single unit
Encapsulation
Encapsulation ensures that variables of a class will be ______ from other classes, and can be accessed only through the _______ of their current class
hidden, methods
The process of a class acquiring the properties (methods and fields) of another
Inheritance
Inheritance - The inheriting class is referred to as a _____ class or subclass, whereas the class providing the properties to be inherited is the _____ class or superclass
child class (subclass), parent class (superclass)