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:
- Author:
- TAMIL MUGHILAN
- See Also:
-
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
-