Class Material 1 24-09-24
Class Material 1 24-09-24
Paradigm can also be termed as method to solve some problem or do some task.
Other paradigms are about the way code is organized, such as grouping into units that include both
state and behavior.
Advantage:
Disadvantage:
Procedural:
Procedural is similar to the imperative approach.
Examples of Procedural programming paradigm:
C : developed by Dennis Ritchie and Ken Thompson
C++ : developed by Bjarne Stroustrup
Java : developed by James Gosling at Sun Microsystems
OOP:
The program is written as a collection of classes and object which are meant for
communication. More emphasis is on data rather procedure.
Advantages:
Data security
Inheritance
Code reusability
Flexible and abstraction is also present
Examples of Object Oriented programming paradigm: Java, C++, Python
Parallel processing:
Parallel processing is the processing of program instructions by dividing them among multiple
processors. This approach seems to be like divide and conquer.