Westonci.ca connects you with experts who provide insightful answers to your questions. Join us today and start learning! Discover precise answers to your questions from a wide range of experts on our user-friendly Q&A platform. Connect with a community of professionals ready to help you find accurate solutions to your questions quickly and efficiently.
Sagot :
Using JAVA knowledge to write code about creating a bank account and using the data to make a transition.
Writing the code in JAVA, we have:
CheckingAccount.java
package bankAccount;
public class Transaction {
int transNumber;
int transId;
double transAmt;
public Transaction(int transNumber, int id, double amount) {
this.transNumber = transNumber;
this.transId = id;
this.transAmt = amount;
}
public int getTransNumber() {
return transNumber;
}
public void setTransNumber(int transNumber) {
this.transNumber = transNumber;
}
public int getTransId() {
return transId;
}
public void setTransId(int transId) {
this.transId = transId;
}
public double getTransAmt() {
return transAmt;
}
public void setTransAmt(double transAmt) {
this.transAmt = transAmt;
}
public String toString() {
return "Transaction Number: " + transNumber + ", Transaction ID: " + transId + " Transaction Amount: " + transAmt;
}
}
See more about JAVA at brainly.com/question/12975450
#SPJ1
Thanks for using our service. We aim to provide the most accurate answers for all your queries. Visit us again for more insights. We hope this was helpful. Please come back whenever you need more information or answers to your queries. Discover more at Westonci.ca. Return for the latest expert answers and updates on various topics.