C++ A Core Language
O'Reilly Media (Verlag)
978-1-56592-116-0 (ISBN)
Gregory Satir helps develop online publishing tools in the Portland, Oregon, office of Electronic Book Technologies. He graduated with a B.S. in computer science from Brown University. Doug Brown is a consultant/contractor in Beaverton, Oregon. He has been developing software for circuit simulation, synthesis, and testing since 1977. Doug coauthored lex & yacc, another O'Reilly & Associates Nutshell Handbook. He received an M.S. in electrical engineering from the University of Illinois at Urbana-Champaign in 1976.
Preface Chapter 1. Object-Oriented Programming with Classes Object-Oriented Programming Classes Chapter 2. C++ Without Classes Three to Start Function Changes Stricter Typing Dynamic Initialization of Globals Some Final Lists Chapter 3. Abstraction with Member Functions The Abstraction Using a struct Using a struct with Interface Functions Using a Class with Member Functions Chapter 4. Encapsulation with Access Specifiers Access Specifiers A Member Can Have Any Access Level Unlimited Access Specifiers Private Does Not Mean Invisible Friend Classes Chapter 5. Hierarchy with Composition and Derivation Composition Derivation Chaining Chapter 6. Better Abstraction with Constructors and Destructors The Default Constructor The Destructor Built-in Types Hierarchy and Chaining Implicit Default Constructors and Destructors Beyond Chaining Explicit Invocation Flow of Control Time of Invocation Chapter 7. Better Abstraction with new and delete Dynamic Objects Dynamic Arrays Mixing Allocators realloc() Out of Memory Chapter 8. References Parameter Versus Argument Passing by Value in C and C++ Passing by Reference in C++ Reference Versus Pointer Returning by Reference in C++ Overloading: Reference Versus Value Binding Problems Chapter 9. Better Abstraction with Other Special Member Functions Assignment Operator Copy Constructor Printing an Object Summary Chapter 10. An Example Class Using an int Using a Static Array Using a Dynamic Array Using a Reference-Counted String Copy Constructor Quiz Summary Table Chapter 11. Better Hierarchy with Templates Defining a Template Using a Template to Define an Object Careful with That Expansion, Eugene Modifying Container Class Elements Chapter 12. Polymorphism with Virtual Functions Polymorphism in C Virtual Functions Polymorphism in C++ More About Virtual Functions Chapter 13. More About Polymorphism Abstract Classes Derivation Decisions Virtual Decisions Calling Virtual Functions from Constructors and Destructors Under the Hood Pitfalls Chapter 14. Implementing an Object-Oriented Design Implementation Table Examples Is-A, Has-A Defensive Implementation Chapter 15. An Example Program The String Class The Rule, CwRule, and HwRule Classes The Scanner Class Using the Program Example Code Chapter 16. What to Study Next const inline Constructors with Parameters Member Initialization Lists Efficient Copy Constructor Special Member Functions Appendix A. C++ Operators Appendix B. One Problem with Returning by Value Glossary Index
Erscheint lt. Verlag | 9.10.1996 |
---|---|
Verlagsort | Sebastopol |
Sprache | englisch |
Einbandart | kartoniert |
Themenwelt | Informatik ► Programmiersprachen / -werkzeuge ► C / C++ |
ISBN-10 | 1-56592-116-X / 156592116X |
ISBN-13 | 978-1-56592-116-0 / 9781565921160 |
Zustand | Neuware |
Haben Sie eine Frage zum Produkt? |
aus dem Bereich