Section 1

Preview this deck

If a function does not return any useful value, its return type is _____

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 14, 2020

Cards (6)

Section 1

(6 cards)

If a function does not return any useful value, its return type is _____

Front

Unit

Back

Classes

Front

In Kotlin ______ are 'final' by default

Back

Data Classes

Front

provide a convenient way to override equals, hashCode, and toString

Back

high-level functions

Front

functions as first class citizens can pass and return from functions

Back

sealed classes

Front

used to restrict class Hierarchies

Back

override fun doSomething() = { super <A>.doSomething}

Front

if implementing many interfaces, how to execute a specific one: interface A {fun doSomething() = {}} interface B {fun doSomething() = {}} class foo: A, B { // code to execute interface A }

Back