We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
override
class Button : Clickable, Focusable { override fun showOff() { super<Clickable>.showOff() super<Focuable>.showOff() } }
open
class Outer { inner class Inner{ fun refOuter() : Outer = this@Outer } }
sealed
class User constructor(_name : String) { val name : String init { name = _name } }
constructor
(val name : String)
private
init
class MyButton : View { constructor(ctx : Context) : super(ctx) { ...} constructor(ctx:Context, attr:Attr) : this(ctx,attr,something) // 다른 생성자에게 위임.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
클래스와 인터페이스
계층정의
override
변경자를 붙이거나, 이름을 변경해야한다.open
변경자를 붙여야한다.가시성 변경자
중첩클래스
봉인된 클래스
sealed
주생성자와 부생성자
constructor
가 생성자 정의시작,(val name : String)
val은 파라미터에 상응하는 프로퍼티가 생성된다는 뜻.private
붙이면, 주 생성자는 비공개이다.init
이 주생성자 이후 초기화 블럭인터페이스 프로퍼티
override
가 붙어야한다.The text was updated successfully, but these errors were encountered: