Programming paradigm:
Programming paradigm means that the fundamental of computer programming. Programming style or methods are changed from language to language.
There are three programming paradigm –
1.) Imperative / Procedural:
Imperative programming languages are the most traditional once. Their code consists of sequential statements to achieve the desired goal.
For Ex:
Basic and Pascal
2.) Functional / Modular:
Functional programming languages are as name suggest, the problems are divided into functions / modules.
For Ex:
C
3.) Object Oriented:
Object oriented programming languages; they mainly focus around objects that have their own properties and procedural / method.
It is also possible to create classes that include the functionality of other already existing classes.
Need of OOPs:
Characteristics of OOPs:
1.Emphasis on data rather than procedure.
2. Programs are divided into what are known as objects.
3. Function and data are tied together in a data structure
4. Data is hidden and cannot be accessed by external functions.
5. Objects may communicate with classes through functions.
6. New data and functions can be easily added whenever necessary.
7. Follows bottom up approach in program design.
Some other characteristics included in C++:
1. New header file such as stdbool.h, inttypes.h.
2. New data types like long long int, Boolean and complex data type to denote complex numbers.
3. C++ introduced new keywords like new, delete, inline, public, private, this etc.
4. C++ supports exceptional handling for handling errors.
5. Ability to declare variable anywhere.
Programming paradigm means that the fundamental of computer programming. Programming style or methods are changed from language to language.
There are three programming paradigm –
1.) Imperative / Procedural:
Imperative programming languages are the most traditional once. Their code consists of sequential statements to achieve the desired goal.
For Ex:
Basic and Pascal
2.) Functional / Modular:
Functional programming languages are as name suggest, the problems are divided into functions / modules.
For Ex:
C
3.) Object Oriented:
Object oriented programming languages; they mainly focus around objects that have their own properties and procedural / method.
It is also possible to create classes that include the functionality of other already existing classes.
Need of OOPs:
Characteristics of OOPs:
1.Emphasis on data rather than procedure.
2. Programs are divided into what are known as objects.
3. Function and data are tied together in a data structure
4. Data is hidden and cannot be accessed by external functions.
5. Objects may communicate with classes through functions.
6. New data and functions can be easily added whenever necessary.
7. Follows bottom up approach in program design.
Some other characteristics included in C++:
1. New header file such as stdbool.h, inttypes.h.
2. New data types like long long int, Boolean and complex data type to denote complex numbers.
3. C++ introduced new keywords like new, delete, inline, public, private, this etc.
4. C++ supports exceptional handling for handling errors.
5. Ability to declare variable anywhere.