Skip to content

Instantly share code, notes, and snippets.

@biratrai
Last active June 23, 2018 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biratrai/23747d11aec00cad20563288f856f7e4 to your computer and use it in GitHub Desktop.
Save biratrai/23747d11aec00cad20563288f856f7e4 to your computer and use it in GitHub Desktop.
Kotlin vs Java Class
// 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