DEV Community

sunj
sunj

Posted on

Kotlin Expression, 2024-03-17

Expression 값을 반환하면
Statement 명령을 지시

Kotlin은 모든 함수가 Expression이다

fun example(score : Int) : Unit {
}
Enter fullscreen mode Exit fullscreen mode

Unit이 생략되어있음

참조 : 유투브 강의 Code with Joyce

Top comments (0)