See post #3 and apply the advice given there. We won't rewrite your code for you.
Type: Posts; User: GregBrannon
See post #3 and apply the advice given there. We won't rewrite your code for you.
// this is a constructor (notice no return type, not even void)
public Accounts ()
{
principal = 50000;
interest = 5;
time = 3;
// this is a return statement. constructors...
Welcome to the Forum! Thanks for taking the time to learn to post code correctly, and if you haven't already, please read this topic to see other useful info for newcomers.
Though you managed to...