I know that an attribute defines the state of thean object. So, is it correct way to keep attributes that doesn'tdon't define the state of thean object in theof a class?
For example, I have aan Employee Classclass, which havehas these attributes like:
emp_id,
fname,
lname,
mname,
salary,
mobile,
email,
gender,
maritalstatus,
position,
birthdate,
hiredate,
dept_id,
address_id,
bank_id.
The dept_id, address_id and bank_id are foreign keys. Now my actual question is can we include attributes like bank_id, address_id and dept_id into Employee class because they are not actually showing exact behavior of Employee Class? Instead can I make another class named EmployeeForeignKeys and keep these attributes bank_id, address_id, dept_id in that class?