Package entity
Class Branch
java.lang.Object
entity.Branch
Represents a bank branch.
Contains basic details such as ID, name, and address.
- Author:
- TAMIL MUGHILAN
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the branch address.int
Gets the branch ID.Gets the name of the branch.void
setAddress
(String address) void
setBranchId
(int branchId) void
setBranchName
(String branchName) toString()
-
Field Details
-
branchId
private int branchId -
branchName
-
address
-
-
Constructor Details
-
Branch
Constructs a Branch.- Parameters:
branchId
- branch IDbranchName
- name of the branchaddress
- address of the branch
-
-
Method Details
-
getBranchId
public int getBranchId()Gets the branch ID.- Returns:
- the branch ID
-
getBranchName
Gets the name of the branch.- Returns:
- the branch name
-
getAddress
Gets the branch address.- Returns:
- the branch address
-
setBranchId
public void setBranchId(int branchId) -
setBranchName
-
setAddress
-
toString
-