I am very new to Java and I was wondering if it is possible to assign an object to another object. For example, supposing I have an object called Classroom. In this classroom, I have got chairs, tables, board etc. Chairs, tables and the board are objects themselves with their own separate attributes such as number of chair legs, table legs, width of the board etc. So basically, I have 4 classes. Now I want to assign the chair, table, board to be attributes of the ClassRoom. I am not sure how to go about this.
Any help would be appreciated, Thanks in advance Ester