Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DEFINE CLASS Command
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00764418
Message ID:
00764520
Vues:
26
Let me ask another question:

I want to create a property in a base class, and use it in sub-classes.
But I want it hidden. How do I do this?
o = CREATEOBJECT("Child")
? o.GetProp()

DEFINE CLASS Child AS Parent

  PROCEDURE GetProp
    RETURN This.MyProp 
  ENDPROC

ENDDEFINE

DEFINE CLASS Parent AS Custom

  HIDDEN MyProp
  MyProp = .T.

ENDDEFINE
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform