Inheritance in Detail

This chapter formalizes and details some of the concepts introduced earlier in Chapter 6. We explain how constructors, destructors, and copy assignment operators are generated and used by derived classes. We discuss how the keywords public, private, and protected can be used for base classes as well as class members. We also provide examples of multiple inheritance.

23.1

Virtual Pointers and Virtual Tables

524

23.2

Polymorphism and virtual Destructors

526

23.3

Multiple Inheritance

528

23.4

public, protected, and private Derivation

536




Part I: Introduction to C++ and Qt 4

C++ Introduction

Classes

Introduction to Qt

Lists

Functions

Inheritance and Polymorphism

Part II: Higher-Level Programming

Libraries

Introduction to Design Patterns

QObject

Generics and Containers

Qt GUI Widgets

Concurrency

Validation and Regular Expressions

Parsing XML

Meta Objects, Properties, and Reflective Programming

More Design Patterns

Models and Views

Qt SQL Classes

Part III: C++ Language Reference

Types and Expressions

Scope and Storage Class

Statements and Control Structures

Memory Access

Chapter Summary

Inheritance in Detail

Miscellaneous Topics

Part IV: Programming Assignments

MP3 Jukebox Assignments

Part V: Appendices

MP3 Jukebox Assignments

Bibliography

MP3 Jukebox Assignments



An Introduction to Design Patterns in C++ with Qt 4
An Introduction to Design Patterns in C++ with Qt 4
ISBN: 0131879057
EAN: 2147483647
Year: 2004
Pages: 268

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net