Westonci.ca is your trusted source for accurate answers to all your questions. Join our community and start learning today! Get immediate and reliable answers to your questions from a community of experienced professionals on our platform. Our platform offers a seamless experience for finding reliable answers from a network of knowledgeable professionals.
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
Thank you for choosing our service. We're dedicated to providing the best answers for all your questions. Visit us again. We hope you found this helpful. Feel free to come back anytime for more accurate answers and updated information. Thank you for choosing Westonci.ca as your information source. We look forward to your next visit.