V
V
vase4ka1510862017-03-31 17:01:12
Java
vase4ka151086, 2017-03-31 17:01:12

Can a modifier method return anything other than void?

Good evening, who is not difficult, please explain. And in addition to the first question: is it possible to create an accessor method with a return type of void. Give examples if possible.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aol-nnov, 2017-03-31
@vase4ka151086

Can the modifier method return anything other than void

maybe. see "method chaining", "fluent api", etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question