Created
May 25, 2021 14:41
-
-
Save muhomerdogu/7af121c2b6f87bc9011b1fbe1dcf0fd2 to your computer and use it in GitHub Desktop.
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
package override; | |
public class BaseKrediManager { | |
public double hesapla(double tutar){ | |
return tutar*1.18; | |
} | |
//benim için bir operasyon herkes için aynı olsun dersek sabit olsun dersek farklı şekilde uygularız. | |
//bunu private etmeyiz. başka yerde kullanamayız. | |
//final ile sabitleriz. | |
public final double hesapla_geri_donus(double tutar){ | |
return tutar*1.01; //yaşlılara verilen faizler. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment