diff --git a/.idea/misc.xml b/.idea/misc.xml index 03f397c..10a22f9 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/src/Main.kt b/src/Main.kt index a7a5e00..5200ea8 100644 --- a/src/Main.kt +++ b/src/Main.kt @@ -1,3 +1,14 @@ fun main() { - println("Hello World!") + val myBook = Book("Extremely Loud and Incredibly Close", + "Jonathon", "Romance", 2016) + myBook.getBookInfo() + +} + +class Book (var title: String, var author: String, var genre: String, var yearPublished: Int){ + + fun getBookInfo() { + println("$title by $author (Genre: $genre) ($yearPublished)") + } + } \ No newline at end of file