Chapter 1: A Review of Classic Object-Oriented Programming

 < Free Open Study > 



Objectives:

  • Contrast structured programming and object-based development.

  • Review data encapsulation, accessors, and mutators.

  • Know the roles of classical inheritance and the containment/delegation model.

  • Understand classical and ad hoc polymorphism.

  • Work with virtual and pure virtual functions.

  • Review template-based programming.

Before you can rush off and create Component Object Model (COM) solutions, you really do need a solid grounding in object-oriented programming (OOP). Attempting to do so without such an understanding can muddle your overall impression of what COM is trying to achieve, leaving you frustrated and in the dark. To be sure, the more you understand OOP (especially C++-based OOP), the deeper your knowledge of the COM paradigm and the ATL framework.

Our goal for this initial chapter is to follow the migration from traditional structured programming in C to the object-oriented paradigm via C++. Along the way a number of C++ syntactical constraints will be reviewed, including how C++ measures up against the cornerstones of OOP: encapsulation, inheritance, and polymorphism. Finally, we wrap up with an overview of template-based programming, a cornerstone of ATL.



 < Free Open Study > 



Developer's Workshop to COM and ATL 3.0
Developers Workshop to COM and ATL 3.0
ISBN: 1556227043
EAN: 2147483647
Year: 2000
Pages: 171

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