CS-16 Object Oriented System June -2001
Qus3 (a) Prepare object diagrams showing at least 10 relationships among the following object classes. Include associations, aggregations and generalizations. Use qualified associations and show multiplicity balls in your diagrams. You do not need to show attributes or operations. Use association names where needed. As you prepare the diagrams, you may add additional object classes. Expression, constant, variable, function, argument list, relational operator, term, factor, arithmetic operation, statements, program
Qus 3(b) In C++, what happens if a constructor or destructor assigns a value to the pointer ‘this"? Explain what precautions must be taken when writing such a constructor to ensure that it can correctly initialize both free store and automatic objects.

