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..c71ad6b 100644 --- a/src/Main.kt +++ b/src/Main.kt @@ -1,3 +1,16 @@ fun main() { - println("Hello World!") + + val kotlinMasterClass = Book("Kotlin guide from zero to hero", yearPublished = 2025, author = "Ali Taqi & Majed" ); + println(kotlinMasterClass.getBookInfo()) + +} + + + +class Book(var title: String, var author: String, var yearPublished: Int) { + + fun getBookInfo():String{ + return "$title By $author ($yearPublished)"; + } + } \ No newline at end of file