Package trial.gaurav.customer
Class AddCustomerAction
java.lang.Object
trial.gaurav.customer.AddCustomerAction
- All Implemented Interfaces:
Action
The `AddCustomerAction` class represents an action to add a new customer to the customer records.
It implements the `Action` interface to define the behavior of the action when selected in the menu.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAddCustomerAction(LinkedList<Customer> cRecords, CustomerConsoleManager cConsoleManager) Constructs a new `AddCustomerAction` object with the given customer records and customer console manager. -
Method Summary
Modifier and TypeMethodDescriptionvoidselect()Performs the action to add a new customer to the customer records.
-
Field Details
-
customerRecords
-
customerConsoleManager
-
-
Constructor Details
-
AddCustomerAction
Constructs a new `AddCustomerAction` object with the given customer records and customer console manager.- Parameters:
cRecords- The linked list containing the existing customer records.cConsoleManager- The customer console manager used to collect new customer details from the user.
-
-
Method Details