Something went wrong. Try again.
Codelabs for major subjects in the BSIT course at STI College Meycauayan. gitlab.com/andreijiroh-dev/labs/studentops-codelab
Something went wrong. Try again.
123456789101112131415161718192021package dev.andreijiroh.studentops.projects.oopLabs;
public class SavingAccount { private double balance; public static double interestRate = 0;
public static void setInterestRate(double newRate) { interestRate = newRate; };
public static void deposit(double amount) { balance = balance + amount; };
public static void withdraw(double amount) { if (balance >= amount) { } }}