1 / 1100%
// Assignment #: ASU CSE205 Spring 2023 #10
// Name: Kathan Parag Shah
// StudentID: 1225611244
// Lecture: T TH 4:30pm
// Description: Customer class represent a customer that visits a bank to see a
loan officer.
public class Customer
{
private int custID;
private String category;
//Constructor to initialize member variables
public Customer(int custID, String category)
{
this.custID = custID;
this.category = category;
}
//Accessor method to access its custID
public int getCustID()
{
return custID;
}
//Accessor method to access its category
public String getCategory()
{
return category;
}
//toString method returns a string containing
//the information of a customer
public String toString( )
{
String result = "Cust.ID: " + custID
+ "(" + category + ")";
return result;
}
}
Powered by TCPDF (www.tcpdf.org)
Students also viewed