CS-16 Object Oriented Systems June-2004
Question Paper of CS-16 Object Oriented Systems June-2004
Q.l(a) Draw a class diagram with two classes, Hospital and Patient. Add at least 4 attributes and 2 operations for both the classes. Explain the classes and associations, if any. Assume that a patinent can consult many hospitals, and that a hospital can provide consultation for many patients. Further, assume that a hospital can provide consultation for a minimum of zero and a maximum of many patients, but a patient must consult in at least one hospital, but possibly many hospitals.
Q-1.(b) Express the following as a constraint that is to be enforced in an application which handles points and polygons: Points are associated with polygons. Every point belongs to exactly one polygon. You do not want a polygon to be linked to a point that has been deleted.
Q. 1 © Define the following terms, giving one example of each:
(i) Virtual functions
(ii) Inheritance
(iii) Function overloading
Q .l(d) List three advantages of object oriented systems.

