Inheritance Using Implements Keyword

Access allows for a type of inheritance called interface inheritance. Interface inheritance allows you to adopt the properties and methods of another object. This feature is implemented using the implements keyword, as shown below.

Implements clsCar

If the preceding code is placed in the General Declarations section of a new class module, you will see the clsCar object in the Object drop-down list, as well as the properties and methods of the clsCar object. You can then select a particular property or method and write the code for that property or method. This is a big drawback to interface inheritance—it requires you to write the code to implement those properties and methods. True inheritance (supported in more advanced programming languages, such as Visual C++, or Visual Studio .NET) enables you to inherit all the properties and methods from another class, including all the code that goes with it.

Was this article helpful?

0 -1

Post a comment