Chapter 6. More About Classes and Objects
After completing this chapter, you will be able to:
Organize classes into header files and source files.
Create objects.
Define constructors to initialize an object.
Define class-wide members by using the static keyword.
Define relationships between objects in an application.
Chapter 2, discusses how C++ is an object-oriented programming language. Recall from that chapter that you define classes to represent the important types of entities in your application, and you create objects as instances of these classes. For example, a Human Resources application might define classes such as Employee and Contract. When the application is running, it might create a new Employee object every time a new employee joins ...
Get Microsoft Visual C++/CLI Step by Step now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.