Ruby/Moduły: Różnice pomiędzy wersjami

Usunięta treść Dodana treść
Szymon wro (dyskusja | edycje)
Nowa strona: Modules in ruby are similar to classes, except: * A module can have no instances. * A module can have no subclasses. * A module is defined by module ... end. Actually... t...
 
Kj (dyskusja | edycje)
m nav
Linia 30:
 
This use of modules gives us the basic functionality of multiple inheritance but allows us to represent class relationships with a simple tree structure, and so simplifies the language implementation considerably (a similar choice was made by the designers of Java).
<noinclude>
{{ProstaNawigacja|spis=Ruby|poprzart=Ruby/Metody singleton|poprz=Metody singleton|nastart=Ruby/Procedury jako obiekty|nast=Procedury jako obiekty}}
</noinclude>