I visited so many sites about the differences between Procedular Oriented Programming and Object Oriented Programming , but I did not get Practical answer .
Everyone is saying theoritical answer .
Can anyone give Practical Explanation for this ?
I visited so many sites about the differences between Procedular Oriented Programming and Object Oriented Programming , but I did not get Practical answer .
Everyone is saying theoritical answer .
Can anyone give Practical Explanation for this ?
Procedural programming is a list or set of instructions telling a computer what to do step by step and how to perform from the first code to the second code.
the best example of a procedural language is C
for e.g here is a python code for procedural programming (any code without oops):
Object oriented programming is the style of programming which uses classes and objects to wrap your code and data which helps to use lesser code and at only one place.
every modern language uses oop
theoretically, as a real world example I think that even god also uses object oriented programming, maybe he first created a parent class called living things which contains exact same properties like exact 2 eyes, 2 hands, one mouth etc, and then he inherited more subclasses like human being, tiger, rat from the same parent class ;)