Chapter 10: Toward Problem Abstraction-Creating New Data Types

 < Day Day Up > 



Learning Objectives

  • Create new data types to improve problem abstraction

  • Use the typedef keyword to create type synonyms for existing data types better suited to the problem domain

  • Explain how type synonyms can be used to improve program maintainability and readability

  • Create and use enumerated data types in your programming projects

  • Describe the default enum state values and explain how they can be changed

  • Explain how to resolve enum state name conflicts

  • Create and use structures in your programming projects

  • Explain how to use the dot operator to access structure and class elements

  • Create and use simple classes in your programming projects

  • State the difference between structures and classes

  • Describe when you would want to use structures vs. classes in a programming project

  • List the key differences between structures and classes

  • State the purpose and use of the this pointer

  • List and define the following terms: class, base class, derived class, superclass, subclass, abstract base class, virtual function, object, message passing, OOA&D, inheritance, data encapsulation, interface, & implementation



 < Day Day Up > 



C++ for Artists. The Art, Philosophy, and Science of Object-Oriented Programming
C++ For Artists: The Art, Philosophy, And Science Of Object-Oriented Programming
ISBN: 1932504028
EAN: 2147483647
Year: 2003
Pages: 340
Authors: Rick Miller

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