Map
Index
Random
Help
th

Quote: a switch statement that uses run-time type inquires destroys the modularity of a program; it is error-prone and not object-oriented

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



Topic:
dynamic vs. static data type
Topic:
self-identifying data structures
Topic:
abstract functions

Quotation Skeleton

It is very seductive to use a run-time … Using run-time type inquiries to implement a switch … object-oriented programming. It is also error-prone [for example, it is easy to forget a case during program maintenance.]   Google-1   Google-2

Copyright clearance needed for quotation.

Additional Titles

Quote: use virtual function calls rather than run-time type inquiries even though the later may be easier and more efficient

Related Topics up

Topic: dynamic vs. static data type (24 items)
Topic: self-identifying data structures (18 items)
Topic: abstract functions (11 items)

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