+ 1

Why one programming language is Procedural and other is OOP?

I mean that we all know C is not OOP and C++ is OOP but why this is like this? I know there arw some companies who have control over the languages but Why we can not make C a OOP language? I think Objective-C is also OOP but why can't we edit C language by our self add some new syntax and make it OOP like C++? Hope you guys understand what I mean.

24th Nov 2019, 6:36 PM
Robin Singh
Robin Singh - avatar
3 ответов
+ 3
There are efforts to bring object-oriented programming elements to C. Look here for example: https://www.codementor.io/michaelsafyan/object-oriented-programming-in-c-du1081gw2
24th Nov 2019, 8:40 PM
Michael
Michael - avatar
+ 2
If that were the case, then different programming styles wouldn't be in picture. C goes with structured and will best fit to do some tasks that most OOP languages might not be able to accomplish with finesse. If we had only OOP we'd only have one programming style which would not have been satisfying both to the user and to the coder. It's The diversity in types of languages helps us more in accomplishing a pre-set objective better and in the simplest way possible.
24th Nov 2019, 8:43 PM
SUPERFLY🦅
SUPERFLY🦅 - avatar