App/Kotlin
[Kotlin] 사용자 클래스 가져오기
//가져올 클래스 명 : Student.kt class student(val name: String, val age: Int) 위 파일 Student.kt package test import Student // 외부의 객체 가져오기 fun main() { val student1 = student("홍길동",15) // 객체 사용하기 println(student1.name) println(student1.age) } 출력 값 : 홍길동 15