11 lines
491 B
Markdown
11 lines
491 B
Markdown
# Lösung: Keyword-Parameter
|
|
|
|
<div style="border: 1px solid grey;"><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></div>```ruby
|
|
def greet(vorname:, nachname:)
|
|
puts "Hello #{vorname} #{nachname}"
|
|
end
|
|
|
|
greet(vorname: 'Barbara', nachname: 'Liskov')
|
|
greet(nachname: 'Liskov', vorname: 'Barbara')
|
|
```
|