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 Type
    Method
    Description
    Collects customer details from the user.
    int
    Collects the customer ID from the user.
    void
    display(Customer customer)
    Displays 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

      void display(Customer customer)
      Displays the customer details on the console.
      Parameters:
      customer - The `Customer` object containing the customer details to be displayed.