Skip to content

Instantly share code, notes, and snippets.

@PreyeaRegmi
Last active September 8, 2021 15:25
Show Gist options
  • Save PreyeaRegmi/63518c358bccf4891a5e958887608bee to your computer and use it in GitHub Desktop.
Save PreyeaRegmi/63518c358bccf4891a5e958887608bee to your computer and use it in GitHub Desktop.
//Domain Entity responsible for calculating EMI for given params.
class EMICalculator {
final double amount, rate, time;
EMICalculator(this.amount, this.rate, this.time);
double calculateEMI()
{
return -1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment