This blog is primarily focus on Java fundamentals and the libraries built on top of Java programming language. Most of the post are example oriented, hope you have fun in reading my blog....:)
Sunday, 24 December 2017
Kotlin: Body of the class is optional
In
kotlin, you no need to define the body to a class, it is optional.
Employee.kt
classEmployee
As
you see, I defined Employee class with no body.
No comments:
Post a Comment