Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does inheritance help to make size of exe smaller?
Message
 
 
À
21/12/2007 09:00:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01276960
Message ID:
01276964
Vues:
23
>>I know that, in one way, inheritance is useful is eliminating a duplicate code. But I was wondering how much it is useful in terms of making the application .EXE smaller. Here is an example:
>>Say I have a form class MyParent in one .vcx library.
>>Then I create another .vcx library and store there a bunch of form classes like MyChild1, MyChild2, etc. all based on the class MyParent.
>>If I didn’t have the MyParent class and simply created a bunch of form classes MyChild1, MyChild2, etc, would the size of the .EXE be much bigger?
>
>No,
>When you build your application VFP automatically will add that class into the project.
>If you hide it somehow you will not be able to compile your project.

I probably didn't put my question correctly. What I meant is that instead of having forms MyChild1, MyChild2, etc. inheriting from the parent class MyParent, they will be based on the VFP base form class. That is, the second case would be not to use inheritance but to simply make each form MyChild1, MyChild2, etc. from scratch. Would this make the .exe much larger?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform