Skip to content

Instantly share code, notes, and snippets.

@jasondew
Created July 9, 2013 18:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jasondew/5960185 to your computer and use it in GitHub Desktop.
Save jasondew/5960185 to your computer and use it in GitHub Desktop.
Java vs Ruby vs Scala
public class Account implements Serializable {
private String subdomain;
public String getSubdomain() {
return subdomain;
}
public void setSubdomain(String subdomain) {
this.subdomain = subdomain;
}
}
class Account {
include Serializable
attr_accessor :subdomain
}
class Account(var subdomain : String) with Serializable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment