Let's take this method in Java:
1 2 3 4 5 6 7 |
|
Considering that the object
ticket
belongs to the same class as this method and it has a method
getValue(Boolean discount)
, what is the minimum number of
keywords
that we need to use in the function body to express the exact same function?
return
,
if
,
else
are considered keywords.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
We can express the function as