Okay well i just started AP Computer Science at my school and we are learning Java and i was wondering if gs2 had a feature java does. And that is the whole implementing classes.
So that if i make a class called getbalance
PHP Code:
public double getbalance(double amount) {
balance =amount;
return balance;
}
so that in the main method i could do
PHP Code:
public static void main(String[] args) {
System.out.println(BankAccount.getbalance());
}
so that i call the method getbalance of the object BankAccount and it will return the vaule of balance.
Is it possible to do that with gs2 and how?