+ 1
Can anyone tell me the most important difference between object oriented programming and traditional programming approach
WANT A LOGICAL ANSWER
2 Antworten
+ 2
in structural programming, data is often separated from procedures and is global, making it easy to modify it outside the scope of your code. This means that access to data is uncontrolled and unpredictable (that is, many functions can have access to global data). Second, because you have no control over who can access the data, testing and debugging is much more complicated. When working with objects, this problem is solved by combining data and behavior into one elegant complete package.
+ 10
what is traditional programming ..if u mean it as procedural programming approach ..then the main difference is : in OOP(object oriented programming) more importance is given to data and methods while in procedural programming more importance is given to procedure followed ; we can make complex programs with less code using OOP approach.....but the same is difficult n much complicated in procedural