Wrox Press C++ Tutorial
Chapter 7 - More on Classes
In this chapter, you will extend your knowledge of classes by understanding how to make your class objects work more like the basic types in C++. You will learn:
-
What a class destructor is and when and why it is necessary
-
How to implement a class destructor
-
How to allocate data members of a class in the free store and how to delete them when they are no longer required
-
When you must write a copy constructor for a class
-
What a union is and how it can be used
-
What a
struct is
-
How to make objects of your class work with C++ operators such as
+ or *
-
What class templates are and how you define and use them
-
How to use classes in a practical example
© 1998 Wrox Press