Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why '::'?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00363407
Message ID:
00363412
Vues:
17
>Hi
>
>I just wanted to know why place like West Wind and Flash
>use the following;
>
>OBJECT::Method it indicate a method and not
>OBJECT.Method?
>
>TIA
>
>Mal

Because they are calling the object's parent class method.
:: is a scope resolution operator.
From VF Help:
The :: operator is used to execute a parent class method from within a subclass method. When you create a subclass, the subclass methods are automatically inherited from the parent class. The :: operator lets you execute the parent class method in the subclass method and then perform additional processing for the subclass method.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform