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

C                                                         c++











             C does not support                                        Being an object oriented

              object oriented                                            programming language


              programming; therefore                                     C++ supports

              it has no support for                                      polymorphism,


              polymorphism,                                              encapsulation, and

              encapsulation, and                                         inheritance.


              inheritance.
                                                                        In C++ data and


             In C data and functions                                    functions are

              are separate and free                                      encapsulated together in


              entities.                                                  form of an object.
   1   2   3   4   5   6   7   8