Talk:C++ Programming/Chapter Object Oriented Programming Print version

Explain why we use the concept of classes in C++, when already the concept of structures prevail in both C and C++?


 * Humm I don't know the actual status of the text (the concepts were in distinct files), the idea of maintaining struct on C++ is mostly for compatibility and simplicity behind a struct a "simpler" class exist, defining a struct is simpler and more direct, for example in other languages like C# structs were optimized for data access, in C++ the specifics are less important but they should be on the book text, classes permit the use of OOP concepts (take a look into the programming paradigms section) about that... --Panic 04:24, 12 April 2007 (UTC)