Package entity

Class Branch

java.lang.Object
entity.Branch

public class Branch extends Object
Represents a bank branch. Contains basic details such as ID, name, and address.
Author:
TAMIL MUGHILAN
  • Field Details

    • branchId

      private int branchId
    • branchName

      private String branchName
    • address

      private String address
  • Constructor Details

    • Branch

      public Branch(int branchId, String branchName, String address)
      Constructs a Branch.
      Parameters:
      branchId - branch ID
      branchName - name of the branch
      address - address of the branch
  • Method Details

    • getBranchId

      public int getBranchId()
      Gets the branch ID.
      Returns:
      the branch ID
    • getBranchName

      public String getBranchName()
      Gets the name of the branch.
      Returns:
      the branch name
    • getAddress

      public String getAddress()
      Gets the branch address.
      Returns:
      the branch address
    • setBranchId

      public void setBranchId(int branchId)
    • setBranchName

      public void setBranchName(String branchName)
    • setAddress

      public void setAddress(String address)
    • toString

      public String toString()
      Overrides:
      toString in class Object