Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
True object oriented?
Message
De
04/11/1999 19:30:19
 
 
À
04/11/1999 04:40:57
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00285641
Message ID:
00287266
Vues:
27
>>Operator and parameter (?) overloading are NOT characteristics of OO.
>
>Err.. I meant function overload. Sorry for that mistake.
>
>They may be not a part of the basics of OO, they're certainly strongly related.

Both operator and function overloading can be provided by a procedural language. The overloading of methods (member operators are just a special case of method) is just an extension to objects.

I would say that overloading is a possible feature of strongly typed languages, but it does not affect OO.

>Well, Maybe I should have said that C++ violates certain OO principles.

Like?

>First off C++ is a hibride OO language supporting both OO and procedural code.

Yes, but this does not stop anybody from using it strictly as a OO language. C++ has powerful features that make global names (variables and functions) unnecessary.

> There are also posibilities to access properties from outside of the object. Though this ease the pain of accessing them trough methods it does violate the OO approach.

Why does it violate it? While I am one of the biggest fan of accessor methods, I wouldn't like to be forced to use them.

IMHO, in real life, objects have properties, in order to make OOP a better method to develop programs, programming objects must also have properties. After all, why is it OOP better than PP? Because it provides a way to model the reality more like it really is.

Vlad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform