Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Interview question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01543887
Message ID:
01543959
Vues:
60
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform