List the differences of structured programming, procedural programming and object oriented programming.
Structures programming
- Composed of simple , hierarchical program flow structure
- Three flow structure : sequential , selection, and repetition.
- Selection is executed depending on the state of the program.
- Repetition is executed until the program reaches a certain state of applied to every element of a collection.
- Associates with a ”top-down design” approach.
Procedural programming
- Using programming language to create computer memory location.
- Approach specifying the step the program must take to reach the desired state.
- Also know as routine , subroutines , methods, or functions.
- Defines the variable memory location.
- Invokes a series of procedure to input, manipulate and output the values stored in those locations.
Object Oriented Programming
- Is an extension of procedural programming.
- Made up of states and method (function).
- State of an object are known as attributes.
- Methods (functions) to accomplish tasks.
- The attributes and methods are encapsulates into object that are then used much like real word objects.
- Programmer are allowed to access to data or procedures only via a specified interface.
No comments:
Post a Comment