What Is The Difference Between Class And Structure In C++

What Is The Difference Between Class And Structure In C++


  • 16 Mar, 2012

    Structure: Initially (in C) a structure was used to bundle different type of data types together to perform a particular functionality. But C++ extended the structure to contain functions also. The major difference is that all declarations inside a structure are by default public.Class: Class is a successor of Structure. By default all the members inside the class are private.

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.