Package entity

Interface Person

All Known Implementing Classes:
AbstractCustomer, AbstractEmployee, Customer, Employee, Manager

public interface Person
Represents a person entity in the banking system.

Implemented by:

  • Customer - Bank customers who hold accounts
  • Employee - Bank staff members
  • Manager - Bank managers with administrative privileges
Author:
TAMIL MUGHILAN
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the person's email address.
    int
    Gets the person's unique ID.
    Gets the person's name.
    default boolean
    Validates the person's email address.
    default boolean
    Validates the person's name.
  • Method Details

    • getId

      int getId()
      Gets the person's unique ID.
      Returns:
      the person's ID
    • getName

      String getName()
      Gets the person's name.
      Returns:
      the person's name
    • getEmail

      String getEmail()
      Gets the person's email address.
      Returns:
      the email address
    • isValidEmail

      default boolean isValidEmail()
      Validates the person's email address.
      Returns:
      true if the email is valid; false otherwise
    • isValidName

      default boolean isValidName()
      Validates the person's name.
      Returns:
      true if the name is valid; false otherwise