answersLogoWhite

0

Disadvantages of oop

Updated: 12/15/2022
User Avatar

Wiki User

12y ago

Best Answer

On giving a practical example to show the difference between saying and real world working.in designing a car model using oop use classes and inheritance but this is not the same as desire.problem will arise when modues increases and line of code shoot up as in the case of Mercedes-Benz S-Class car with 50 controllers, 600,000 lines of code, hundreds of bus messages, thousands of signals, and three networks.

An other issue Aries during athis talk be iterface for all different subsystems which is not possible to same location as assumed by OOP .Different sunsystems use different approaches and methods to deal with problem and they are inheriently built for this .If desire to have same interface changes must br done at subsystm level this will loss their imprtance.

Instead of diving class and making inheritance industry use different approach they divide subsystems ansd made a small team for each subsystem. There is a need for talented systems

engineers to specify and integrate the subsystems, but there is no overall grand software design where OOP might help.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

Personally I find oops code can get very hard to read, even well written code. The problem is inheritance and polymorphism. The problem with inheritance is that if you want to figure out what a given method does, you have to search up the class hierarchy until you find its definition. In a way, inheritance is worse than goto--at least with goto the destination is somewhere in your function but with inheritance it could be in any number of files. The problem with polymorphism means that simply finding a function with the right name is not sufficient, you have to also look at the parameters. Trying to read code without a good class browser is almost impossible. It IS impossible once you get into virtual functions where the decision of which function gets called is only determined at runtime. For example, suppose you're trying to figure out the following line of code obj.Write(a);. Which function is being called? Well, if you're lucky and you know what type obj is then you probably only have about 10 different versions of Write() to pick from depending upon what a is. If you're unlucky and obj can be of several types, then you got a lot of work cut out for you. Two other oops features that can get really hard to read are operator overloading (fortunately it's rarely used), and class properties that look like simple variable assignment but are really complex function calls. My very first exposure to oops programming was as an intern at Sun Labs (just downstairs from the tcl team) where my job was to instrument C++ kernel code to determine where time was being spent. Kernel programming is hard enough, but the real bear was just trying to read the well-written but deeply inherited code. Mohanjeet Singh mohanjeet_rjp@Yahoo.com

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Disadvantages of oop
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the disadvantages of OOP over POP?

Some disadvantages of OOP compared to POP include higher memory consumption due to the overhead of objects, increased complexity and overhead due to inheritance and polymorphism, and potential performance overhead due to dynamic binding and method lookup. Additionally, OOP can sometimes lead to more convoluted and less readable code compared to procedural programming.


What are the disadvantages of object oriented programming over structured programming?

actually oop concept have some disadvantage when compared to structured programming


What are advantages and disadvantages of oop 'object oriented programming?

The advantages are Data Encapsulation Data Hiding Easy to maintain the code Reuseability of classes And disadvantages are wastage of time in case of small projects or codes


How do you ally oop in 2k9?

how to ally oop in nba 2k9


When was ZZT-oop created?

ZZT-oop was created in 1991.


What is a one letter initial called?

The 'Initial'


What bird goes oop oop oop?

The hoopoe makes a sound that goes 'oop oop oop.' In many cultures, the bird has a similar name because of this particular call they are known for. Hoopoes are birds from the Afro-Eurasian region. They have distinctive feather patterns in their wings and crests, as well as flat dark bills.


What is the duration of Allez Oop?

The duration of Allez Oop is 1260.0 seconds.


What is difference between oop and advanced oop?

the word advanced. If these 2 are course titles, the institute should have the course descriptions. In software development, it would be the first time for me to hear about advanced oop. (what is the basic oop, then?)


What is Object Oriented Programming without the principle of Polymorphism?

Polymorphism is an important principle in OOP; it would be hard to imagine OOP without it. Other important principles are inheritance, and encapsulation.Polymorphism is an important principle in OOP; it would be hard to imagine OOP without it. Other important principles are inheritance, and encapsulation.Polymorphism is an important principle in OOP; it would be hard to imagine OOP without it. Other important principles are inheritance, and encapsulation.Polymorphism is an important principle in OOP; it would be hard to imagine OOP without it. Other important principles are inheritance, and encapsulation.


When was Alley Oop - song - created?

Alley Oop - song - was created in 1960.


How does a hoopoe communicate?

The hoopoe makes a sound like 'oop-oop-opp.'