Information générale
Catégorie:
Programmation Orientée Object
Versions des environnements
>Naomi,
>
>I've made it through the problem we've been discussing. Now I am encountering another problem.
>
>As I've said before I two classes that are based off of a single class. This abstract class has a single property and a few methods. Now if I understand how this is supposed to work the two subclasses should inherit the property and have access to the methods from the parent. Does each subclass have its own "copy" of the property or do they access the single property from the parent class?
I think you're getting confused over classes vs. instances. The class is the model; it tells CreateObject/NewObject what to do when creating an instance. But the class itself and any parent classes don't exist as objects at runtime. Only the instances you create exist.
Tamar
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement