A
A
Alexander Morgunov2018-04-12 07:34:50
Kotlin
Alexander Morgunov, 2018-04-12 07:34:50

Is it a Kotlin feature to shorten a method name when called?

Hello everyone,
I have an interesting question here.
How to take advantage of the Kotlin feature when shortening a method name during a call?
For example, the File class has a getParent() method, which Kotlin suggests replacing with parent.
How to take advantage of this opportunity? Is it a method overload?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
longclaps, 2018-04-12
@toruk0109

This is property , adit?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question