Chapter 8. Classes and Objects : A Deeper Look
Figure 8.1 | Time1 class declaration maintains the time in 24-hour format.
Figure 8.2 | Time1 object used in an application.
Figure 8.3 | Private members of class Time1 are not accessible.
Figure 8.4 | this used implicitly and explicitly to refer to members of an object.
Figure 8.5 | Time2 class with overloaded constructors.
Figure 8.6 | Overloaded constructors used to initialize Time2 objects.
Comments
Post a Comment