0

Why we use the C++ instead of C

What is the requirement of C++ when C is also exits

17th Jul 2016, 5:32 PM
Arpit agarwal
3 odpowiedzi
+ 5
c is a procedure oriented language in which data can be globally accessed where as c++ is an object oriented langugae which allows some additional features like encapsulation,abtraction,polymorphism. in c++ classes and objects are also included however syntax are common of the both languages but both are different language.
17th Jul 2016, 5:52 PM
Tushar Chetan
Tushar Chetan - avatar
+ 2
Abstraction is also possible in C. You can also build polymorphism in C but it's not *built in*. The VideoLan VLC player is a C project that reimplemented polymorphism via function tables.
17th Jul 2016, 8:21 PM
Stefan
Stefan - avatar
0
C++ is basically everything people wanted to put in C since ever (about 40 years I think)... making it supper powerful but also very complicated with bad stuff (like goto).
18th Jul 2016, 12:04 AM
Itay Almog
Itay Almog - avatar