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
class Employee

As you see, I defined Employee class with no body.

Previous                                                 Next                                                 Home

No comments:

Post a Comment