Overview
TheSalesPerson class represents a salesperson in the application. It stores salesperson credentials, contact information, manager association, and manages an inventory of items assigned to the salesperson.
Constructor
Default Constructor
Parameterized Constructor
The name of the salesperson
The phone number of the salesperson
The password for authentication
The name of the manager this salesperson reports to
The email address of the salesperson
Fields
The name of the salesperson
The phone number of the salesperson
The password for authentication
The name of the manager this salesperson reports to
The email address of the salesperson
List of inventory items assigned to this salesperson
Methods
getName()
String - The salesperson’s name
getNumber()
String - The salesperson’s phone number
getPassword()
String - The salesperson’s password
getManagerName()
String - The manager’s name
getEmailId()
String - The salesperson’s email address
getInventoryItems()
ArrayList<InventoryItem> - The list of inventory items
Source Code Location
~/workspace/source/app/src/main/java/project/avishkar/salesmanagement/SalesPerson.java