Kotlin Soft Keywords Flashcards Preview

Kotlin keywords > Kotlin Soft Keywords > Flashcards

Flashcards in Kotlin Soft Keywords Deck (18)
Loading flashcards...
1
Q

by

A
  • ‘delegates the implementation of an interface to another object’ .
  • ‘delegates the implementation of accessors for a property to another object’ .
2
Q

catch

A

begins a block that ‘handles a specific exception type’ .

3
Q

constructor

A

declares a ‘primary or secondary constructor’ .

4
Q

delegate

A

is used as an ‘annotation use-site target’ .

5
Q

dynamic

A

reference a dynamic type in Kotlin/JS code

6
Q

field

A

is used as an ‘annotation use-site target’ .

7
Q

file

A

is used as an ‘annotation use-site target’ .

8
Q

finally

A

begins a block that ‘is always executed when a try block exits’ .

9
Q

get

A
  • declares the ‘getter of a property’ .

- is used as an ‘annotation use-site target.

10
Q

import

A

‘imports a declaration from another package into the current file’ .

11
Q

init

A

begins an ‘initializer block’ .

12
Q

param

A

is used as an ‘ annotation use-site target’ .

13
Q

property

A

is used as an ‘ annotation use-site target’ .

14
Q

receiver

A

is used as an ‘ annotation use-site target’ .

15
Q

set

A
  • declares the ‘setter of a property’ .

- is used as an ‘ annotation use-site target’ .

16
Q

setparam

A

is used as an ‘ annotation use-site target’ .

17
Q

value

A

value with the ‘class’ keyword declares an ‘inline class’ .

18
Q

where

A

specifies ‘constraints for a generic type parameter’ .