Page 5 - Difference Between C and C++
P. 5

C                                                         c++











             In C, data are free entities                              In C++, Encapsulation

              and can be manipulated by                                  hides the data to ensure

              outside code. This is                                      that data structures and

              because C does not support                                 operators are used as


              information hiding.                                        intended.



             C, being a procedural                                     While, C++, being an

              programming, it is a                                       object oriented

              function driven language.                                  programming, it is an


                                                                         object driven language.
             C does not support

              function and operator                                     C++ supports both

              overloading.                                               function and operator


                                                                         overloading.
   1   2   3   4   5   6   7   8