Part 2: Implementing Object-Oriented Concepts in C++
The goal of this part is to understand how to implement OO designs using both C++ language features and proven programming techniques. C++ can be used for many paradigms of coding; programmers must strive to program in an OO fashion in C++ (it’s not automatic). This is the largest section of the book, as understanding how to map language features and implementation techniques to OO concepts is paramount.
The initial chapter in this section explores classes in great detail, beginning by describing the OO concepts of encapsulation and information hiding. Language features such as member functions, the this
pointer, access regions in detail, constructors in detail (including the copy constructor, the member initialization list, and in-class initialization), destructor, qualifiers on member functions (const
, static
, and inline
), and qualifiers on data members (const
and static
) are examined in depth.
The next chapter in...