Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DEFINE CLASS Command
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00764418
Message ID:
00764520
Views:
27
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform