Various Programming Techniques
1. Unstructured Programming2. Procedural Programming
3. Modular Programming
4. Object Oriented Programming (OOP)
1. Unstructured Programming:- The main program directly operates on global data.
Main disadvantage of this, if the same statement sequence is needed at different locations within the program, the sequence must copied.
2. Procedural Programming:- Programmers are able to combine returning sequences of statements into one single place.
In the Procedural programming technique main program coordinates calls to procedures and hands over appropriate data as parameters.
Disadvantage : program is divided into small pieces, called procedures.
3. Modular Programming:- modular programming procedures of a common functionality are grouped together into separate modules.
A program therefore no longer consists of only one single part. It is now divided into several smaller parts which interact through procedure calls and which form the whole program.
4. Object Oriented Programming (OOP):- Object programming is an approach that provides a way of modularizing programs by creating partitioned memory area for both data and functions that can be used as templates for creating copies of such modules on demand.
Note:
1. An object is considered to be a partitioned area of computer memory that stores data and set of operations that can access data.
2. The memory partitions are independent, the objects can be used in a variety of different program without modifications.
3 C is a procedural language.
4. C++ is an object-oriented language.
CBSE Class 12 Maths
CBSE class 11 Maths
0 Comments