Is there any disadvantages of using OOP ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is there any disadvantages of using OOP ?

There are several advantages of using object oriented programming languages like c++,java,etc. Is there any disadvantage of using OOP

23rd Jan 2017, 5:18 PM
Avinash Singh
Avinash Singh - avatar
2 Answers
+ 1
Object oriented programming typically involve more learning, and more lines of code. However, in most cases, the advantages outweighs those disadvantages when it comes to complex programs.
23rd Jan 2017, 6:14 PM
Alex
0
There are several downsides to Java an C++. But not necessarily for them having objects, and not necessarily the same for both. Also note that neither one is fully OOP, as they have basic data types. On the other hand Java has nothing besides classes. Which gives you all those ugly -er utility classes, where a function would do. And then library designers fail to make those methods static, because this is supposed to be OOP. - A good way would be singleton objects like Scala or Kotlin. Also these languages lack extension methods, which also breaks the OOP scheme. So OOP is fine, but these languages are not actually doing it.
30th Jan 2017, 10:28 PM
1of3
1of3 - avatar