Question: Create a class called Customer that includes three instance variables: id (int), name (String) and gender (char). The class contains: A constructor that creates a

 Create a class called Customer that includes three instance variables: id

Create a class called Customer that includes three instance variables: id (int), name (String) and gender (char). The class contains: A constructor that creates a Customer with the specified id, name and gender. Provide get methods for each instance variable. Provide a method toString takes no arguments and returns "name(id)". Write a test program called TestCustomer to test the Customer class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!