The Three Pillars

So far, we've talked about creating class modules that are complete with their own properties and procedures. We've talked about developing their implementation code, instantiating them as objects, linking them to other objects singly and in collections, and finally, using them in our application. For most cases, this is all you need to know.

But if you want to create a lot of related classes, and do it in the most efficient way, then you need to understand a few principles of OOP.

The three pillars of object-oriented theory are encapsulation, inheritance, and polymorphism. These things have different meanings to different people, and the extent to which they apply to an object-oriented language differs according to which language you happen to prefer. There are other factors like operation overloading, parameterized constructors, and class-level attributes, but their discussion is largely irrelevant because they are not implemented in the current version of Access—perhaps in a later version.

0 0

Post a comment