Last active
June 23, 2018 09:37
-
-
Save biratrai/23747d11aec00cad20563288f856f7e4 to your computer and use it in GitHub Desktop.
Kotlin vs Java Class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Kotlin class declaration | |
class Invoice { | |
} | |
// Java class declaration | |
public class Invoice { | |
} | |
// If the class has no body, curly braces can be omitted. | |
class Empty | |
// Empty class in Java | |
public final class Empty { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment