Licht Bach
Forum Veteran
Deleted thread
Salamat po nang marami FreeAllYouCan-OFFICIAL sa tulong pati kay Arjien mwuaahhh

Salamat po nang marami FreeAllYouCan-OFFICIAL sa tulong pati kay Arjien mwuaahhh




Natry ko na po kanina and 0 lang po ang binabalikdeclared dapat lahat ng variable sa labas ng setter/getter.
kya pag mag pull sya ng value di makita sa ibang setter/getter.
try o print the interest only kung may result sya or 0.
Natry ko na po kanina and 0 lang po ang binabalik
public static void setInterestRate(double newrate) {
interestRate = newrate;
}
public void addInterest() {
double interest = (getBalance() * interestRate) / 100;
balance = balance + interest;
System.out.println("Your new balance is: " + balance);
}
AYOWNNNN ok na paps napapalabas ko na sa getters, ayun lang pala hahaha, baliktad pala yung interestRate = newRate ko. Salamat ng marami paps FreeAllYouCan-OFFICIAL mwuahhhhJava:public static void setInterestRate(double newrate) { interestRate = newrate; } public void addInterest() { double interest = (getBalance() * interestRate) / 100; balance = balance + interest; System.out.println("Your new balance is: " + balance); }
WelcomeAYOWNNNN ok na paps napapalabas ko na sa getters, ayun lang pala hahaha, baliktad pala yung interestRate = newRate ko. Salamat ng marami paps FreeAllYouCan-OFFICIAL mwuahhhh