This file contains hidden or 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
mixin Activity{ | |
void caloriesLeft(doble totalCalories,double burnedCalories){ | |
return totalCalories-burnedCalories; | |
} | |
} | |
// our main class- this is just an example | |
// please make seperate file for mixin | |
class Person with Activity{ | |
double totalCalories=200; |