What does "return" do in C#?
public static BankAccount openBankAccount(string owner, double balance, double allowed)
{
BankAccount account;
account = new BankAccount();
account.owner = owner;
account.balance = balance;
account.allowed= allowed;
return account;
}
Why does it return it? What is the meaning of returning? We don't see anything of it when the program is running. Thank you very much.