18 lines
293 B
Plaintext
18 lines
293 B
Plaintext
class Brunch {
|
|
var food;
|
|
var drink;
|
|
|
|
init(food, drink) {
|
|
this.food = food;
|
|
this.drink = drink;
|
|
}
|
|
|
|
fun get_recipe() {
|
|
return this.food + " " + this.drink;
|
|
}
|
|
}
|
|
|
|
var instance = Brunch("eggs", "coffee");
|
|
print instance;
|
|
print instance.get_recipe();
|