Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Kotlin In Action] 2장 - 코틀린 기초 #2

Closed
alb7979s opened this issue Dec 23, 2021 · 7 comments
Closed

[Kotlin In Action] 2장 - 코틀린 기초 #2

alb7979s opened this issue Dec 23, 2021 · 7 comments
Labels
question Further information is requested

Comments

@alb7979s
Copy link
Contributor

No description provided.

@alb7979s alb7979s added the question Further information is requested label Dec 23, 2021
@alb7979s alb7979s added this to To do in Kotlin In Action via automation Dec 23, 2021
@483759
Copy link

483759 commented Dec 27, 2021

(64p) 타입으로 변수 선언을 시작하면 타입을 생략할 경우 식과 변수 선언을 구별할 수 없다

의 의미는?

@483759
Copy link

483759 commented Dec 27, 2021

(65p) 변수의 타입 추론 시 double 타입의 0을 할당하고 싶으면 0.0을 대입해야하나?

@483759
Copy link

483759 commented Dec 27, 2021

(66p) (자바에서는 final 키워드를 사용하면 변수 선언과 동시에 반드시 초기화를 해줘야 했지만) 코틀린은 val을 사용해서 변수를 선언할 때 선언과 대입을 분리해도 될까?

@483759
Copy link

483759 commented Dec 27, 2021

(69p) JavaBean 클래스란?

@483759
Copy link

483759 commented Dec 27, 2021

(72p) private 접근 제한자가 있어도 공개된 getter, setter를 모두 가지면 public과 다를 게 없다. 코틀린은 심지어 프로퍼티에 직접 접근할 수 있다. 캡슐화를 더 잘 구현하려면 어떻게 해야할까?

@483759
Copy link

483759 commented Dec 27, 2021

(60p)함수 파라미터에 var, val을 안 붙이면 어떻게 될까

@483759
Copy link

483759 commented Dec 28, 2021

(81p) when 구문을 사용할 때 setOf로 동등성을 판단한다고 했다.

  1. 동등성 vs 동일성의 차이
  2. Set collection이 아니어도 동등성으로 판단할까?

Kotlin In Action automation moved this from To do to Done Jan 6, 2022
alb7979s added a commit that referenced this issue Jan 10, 2022
alb7979s added a commit that referenced this issue Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Development

No branches or pull requests

3 participants