The two most applied approaches are Flashcards
(46 cards)
What are the two most applied approaches in systems analysis and design?
- Structured approach 2. Object oriented (OO) approach
What does the structured approach in systems analysis focus on?
Analyzing and designing software systems through functional decomposition
What is functional decomposition?
Examining an information system in terms of the functions it performs and the data it uses and maintains
List the composite steps for the function ‘Calculate employee wages’.
- Calculate hours of work * Determine wage rate per hour * Multiply hours by rate to get Gross Pay * Add/deduct adjustments * Produce Net Pay
How does the object-oriented approach differ from the structured approach?
It decomposes the system down into objects, focusing on the things in the system and their interactions
What are the four principles introduced by the object-oriented approach?
- Abstraction * Encapsulation * Modularity * Hierarchy
Define abstraction in the context of object-oriented design.
Focusing on including the most important aspects of a system while ignoring less important details
What is encapsulation?
Separating implementation from users, allowing only the owning instance to modify or read its data
What does encapsulation protect?
An object’s internal state from being corrupted by other objects
What is modularity?
The process of breaking complex systems into small, self-contained pieces that can be managed easily
How is hierarchy defined in object-oriented design?
An ordering of abstractions into a tree-like structure, where complex systems are composed of interrelated subsystems
What is an object in object-oriented programming?
The basic run-time entity that can represent a person, location, account, or any item the program handles
What are the two aspects that characterize real-world objects?
- Information (Data) * Behaviour
What is a class in object-oriented programming?
A template for an object that describes a set of objects sharing the same attributes and operations
What is an attribute in the context of a class?
A named property of a class that describes a range of values instances of the property may hold
What is an operation in a class?
The implementation of a service that can be requested from any object of the class to affect behavior
What is the difference between a super-class and a sub-class?
A super-class contains features common to multiple classes, while a sub-class contains at least the features of its super-class
What is inheritance in object-oriented programming?
The process by which objects of one class acquire the properties of objects of another class
What does polymorphism mean?
The ability to take more than one form, allowing operations to exhibit different behavior based on data types
What is the significance of encapsulation in object-oriented design?
It achieves information hiding and reduces the impact of side effects associated with change
Fill in the blank: A class is a description of a set of objects that share the same _______.
[attributes and operations]
True or False: A class must have at least one attribute.
False
What is the role of interfaces in encapsulation?
They form a contract between the class and the outside world, allowing clients to depend on interfaces only
What happens when a change is made to a superclass?
It is immediately inherited by all subclasses that have inherited from the superclass