Join Slack
Powered by
Hi, is there anyway to use a variable named id lik...
# codereview
b
bob
03/06/2017, 7:18 PM
Hi, is there anyway to use a variable named id like so:
var id:Int = -1
and implement an interface with a getter for the same name? I e a kotlin interface
Copy code
interface IDable { fun getId():Int }
Or a java interface
Copy code
public interface IDable { int getId() }
3
Views
Open in Slack
Previous
Next