Map
Index
Random
Help
th

Quote: need to determine the actual type to use a derived class. Ensure a homogeneous set, use a type field, or use virtual functions

topics > all references > references sa-sz > QuoteRef: stroB_1991 , p. 187



Topic:
generic operations and polymorphism
Topic:
object-oriented templates and containers
Group:
data structures
Group:
derived data types
Topic:
abstract functions

Quotation Skeleton

To use derived classes … , the following problem must be solved: Given … There are three fundamental solutions to the problem: … [1] Ensure that … [2] Place a type field in the base class for the … [3] Use virtual functions. Pointers to base classes are commonly used … 1 yields homogeneous lists, that is, lists of … that is, lists of (pointers to) objects of …   Google-1   Google-2

Copyright clearance needed for quotation.

Additional Titles

Quote: a base class is commonly used for container classes such as set, vector, and list; the container may be homogeneous or heterogeneous
Quote: virtual functions identify the type of an object in a type-secure way

Related Topics up

Topic: generic operations and polymorphism (65 items)
Topic: object-oriented templates and containers (27 items)
Group: data structures   (12 topics, 275 quotes)
Group: derived data types   (9 topics, 119 quotes)
Topic: abstract functions (11 items)

Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.