Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Interview question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01543887
Message ID:
01543959
Views:
58
The correct answer is to tell the interviewer that this is terrible coding and that you would never create a public variable in the Main.prg.

You would create an app class, and build properties on it, then reference those properties.

If a company is asking this kind of question, I'd go work somewhere else.

Just my humble opinion.



>*Interview question
>
>"PubVar" public variable is declared in the main prg.
>
>Public PubVar
>PubVar=2
>
>
>Then the subroutine prg is called. How to make PubVar hidden and not accessible there?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Reply
Map
View

Click here to load this message in the networking platform