Created
June 4, 2017 14:01
-
-
Save msomu/79db01c9518746ce46bfffd234f1e2b8 to your computer and use it in GitHub Desktop.
Introduction to Kotlin
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 Movies { | |
private String id; | |
private String url; | |
public String getUrl() { | |
return url; | |
} | |
public void setUrl(String url) { | |
this.url = url; | |
} | |
public String getId() { | |
return id; | |
} | |
public void setId(String id) { | |
this.id = id; | |
} | |
@Override | |
public String toString() { | |
return "Movie{" + | |
"id=" + id + | |
", url='" + url + '\'' + | |
'}'; | |
} | |
} |
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
data class Movie( | |
var id: String, | |
var url: String) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment