Skip to content

Commit

Permalink
Removed the mention of real people
Browse files Browse the repository at this point in the history
  • Loading branch information
svtk committed Jul 29, 2015
1 parent 96542db commit b6c81c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/i_introduction/_7_Data_Classes/DataClasses.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import util.TODO
class Person1(val name: String, val age: Int)

//no 'new' keyword
fun create() = Person1("James Gosling", 58)
fun create() = Person1("Alice", 29)

fun useFromJava() {
// property 'val name' = backing field + getter
// => from Java you access it through 'getName()'
JavaCode7().useKotlinClass(Person1("Martin Odersky", 55))
JavaCode7().useKotlinClass(Person1("Bob", 31))

// property 'var mutable' = backing field + getter + setter
}
Expand Down

0 comments on commit b6c81c1

Please sign in to comment.