Ruby/Metody: Różnice pomiędzy wersjami

Usunięta treść Dodana treść
Szymon wro (dyskusja | edycje)
Nowa strona: What is a method? In OO programming, we don't think of operating on data directly from outside an object; rather, objects have some understanding of how to operate on themselves (when a...
 
Kj (dyskusja | edycje)
mNie podano opisu zmian
Linia 54:
 
What we would think of traditionally as a function call is just this abbreviated way of writing method invocations by self. This makes ruby what is called a pure object oriented language. Still, functional methods behave quite similarly to the functions in other programming languages for the benefit of those who do not grok how function calls are really object methods in ruby. We can speak of functions as if they were not really object methods if we want to.
{{ProstaNawigacja|spis=Ruby|poprzart=Ruby/Myślenie zorientowane obiektowo|poprz=Myślenie zorientowane obiektowo|nastart=Ruby/Klasy|nast=Klasy}}