0
Programming paradigms
What does it mean, in simple words, that a language is object oriented? What other programming paradigms are there?
2 ответов
+ 4
It is a style of coding, not based on programing languages. Now, what is programing paradigm. In simple word, It is a style of coding in a clean,pattern and a meaningful way that obey a philosophical and theoretical framework of a scientific school or discipline within which theories, laws, and generalizations and the experiments performed in support of them are formulated. I have use some line from Merriam-Webster. It has define programing paradigm with three definations, here they are
1. example, pattern; especially: an outstandingly clear or typical example or archetype
2. an example of a conjugation or declension showing a word in all its inflectional forms
3. a philosophical and theoretical framework of a scientific school or discipline within which theories, laws, and generalizations and the experiments performed in support of them are formulated; broadly: a philosophical or theoretical framework of any kind.
Programing paradigm is not only with object oriented way. It is just a part of programing paradigm. Programing paradigm include imperative, functional, declarative, object-oriented, procedural, logic, symbolic programming style. Hope you understand, for more just reply
+ 1
@Thomas Polzenius : In simple words, I would like to say if you are concerned with the fact how different entities or objects of real world are related and communicating with each other then you are in the world of object oriented programming and if you want to visualise your program execution as a sequential flow like one step after another then you are in Procedural Programming...
When we say programming paradigm we simply mean an approach to make programmers visualise themselves as aprogrammers taking care of all executions and IFF they can SEE IN PARALLEL, different blocks in the source code representing different sort of objects and which are holding all related variables and functions using which these blocks can manipulate a piece of data elements and if such Data Elements Are Seen Going From One Such Block To Another, then in this situation we are doing objects oriented programming and here these individual blocks are called Class.
And if they can't see such blocks in parallel and if instead of data elements propagation the flow of execution changes according to some considerations then we are doing Procedural Programming.
In Object Oriented Programming paradigm we deal with concepts such as
1 :- Encapsulation(Classes containing all variables and methods together)
2 :- Abstraction(allowing only required variables or methods to be visible and hiding other intrinsic private members)
3 :- Polymorphism(where a method works different for different situations,takes many forms)
4 :- Inheritance(Where a we can form new sub classes of a parent class by adding new attributes and subclass will still hold all attributes of its parent.)
there are number of other concepts as well like overload, Overriding, Classes and there objects or instances and so on...
I have tried to explain in simple terms and now I hope you liked it.
@AllSoloLearners " Please comment if I have mistaken anywhere ...or if you have any suggestions. I would be pleased to see your replies and constructive feedbacks."