Created
July 9, 2013 18:58
-
-
Save jasondew/5960185 to your computer and use it in GitHub Desktop.
Java vs Ruby vs Scala
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
public class Account implements Serializable { | |
private String subdomain; | |
public String getSubdomain() { | |
return subdomain; | |
} | |
public void setSubdomain(String subdomain) { | |
this.subdomain = subdomain; | |
} | |
} |
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
class Account { | |
include Serializable | |
attr_accessor :subdomain | |
} |
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
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