i have a class where i am storing the error header information and another class to store the details about the errors like the following
header
---------
id, name
details
---------
field id
changed value
original value
now i want to create an instance to header class through which i need to input values to details and well the single header class can have multiple details
say
1,"x","101","ab ","mm"
1,"x","102","mx ","zz"
something like the above.
i have seen couple of examples like aggregation of header with details
but they requires two instances.
Could you please guide me to proceed in oops way....
header
---------
id, name
details
---------
field id
changed value
original value
now i want to create an instance to header class through which i need to input values to details and well the single header class can have multiple details
say
1,"x","101","ab ","mm"
1,"x","102","mx ","zz"
something like the above.
i have seen couple of examples like aggregation of header with details
but they requires two instances.
Could you please guide me to proceed in oops way....
Comment