Question
In this assignment, we will begin to create a class that we will be using multiple times through the semester. Start by creating a class
In this assignment, we will begin to create a class that we will be using multiple times through the semester.
Start by creating a class named YourLastName_BankAccount. Using this sample code
public class myClass { private int intValue; public void setIntValue (int intValue) { this.intValue= intValue; } public int getIntValue () { return intValue; } }
create a series of variables for AccountNumber, AccountType, AccountHolder, and AccountBalance. Then create a series of methods to Create the account, and then to Inquire account status and make Deposits and Withdrawals.
Using this sample code, test the various methods by creating several Accounts, making some deposits and withdrawals, inquire the balance of each account.
public class Test { public static void main (String []args) { myClass intNumber = new myClass(); intNumber.setIntValue(30); System.out.println("the int value is " + intNumber.getIntValue()); } }
This is the assignment given and I keep running into error cannot find symobl for method not found. Any help you could give would be appreciated. Thank you.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started