Package trial.gaurav.customer
Interface CustomerRecordIo
- All Known Implementing Classes:
CustomerConsoleManager
public interface CustomerRecordIo
The `CustomerRecordIo` interface provides a contract for classes that handle customer record input and output operations.
-
Method Summary
Modifier and TypeMethodDescriptionCollects customer details from the user.intCollects the customer ID from the user.voidDisplays the customer details on the console.
-
Method Details
-
collectCustomerDetails
Customer collectCustomerDetails()Collects customer details from the user.- Returns:
- A `Customer` object containing the customer details entered by the user.
-
collectCustomerId
int collectCustomerId()Collects the customer ID from the user.- Returns:
- The customer ID entered by the user.
-
display
Displays the customer details on the console.- Parameters:
customer- The `Customer` object containing the customer details to be displayed.
-