Hi,
We know that a location in apex can store only data of one type and when you have data from multiple types then you wont be club them together without a self defined container called as wrapper class. A nested wrapper class that is a wrapper consisting of another class variables.