Help Help Java Programing

Status
Not open for further replies.

Licht Bach

Forum Veteran
Elite
Joined
Jun 1, 2017
Posts
1,893
Reaction
1,042
Points
842
Deleted thread

Salamat po nang marami FreeAllYouCan-OFFICIAL sa tulong pati kay Arjien mwuaahhh😘😘
 
Last edited:
declared 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.
 
Last edited:
declared 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
 
Natry ko na po kanina and 0 lang po ang binabalik

Java:
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);
   }
 
Java:
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 mwuahhhh
 
Status
Not open for further replies.

Similar threads

Back
Top