CS : 16 Object Oriented Systems of December 2004
Quesetion Paper of CS-16: Object Oriented Systems
Q.l(a)Draw a class diagram with two classes, Teacher and Course. Add at least 4 attributes and 2 operations for both the classes. Explain the classes and associations, if any. Assume that a teacher can teach many courses and a course can be taught by many teachers. Further, assume that a teacher teachs a minimum of one course and a maximum of one teacher and a maximum of many teachers. Make assumptions, whereever necessary.
Q.l(b) Prepare a list of objects that the following system will handle:
Q.l© Define the following terms, giving at least one exampli of each:
(i) Abstraction
(ii) Information hiding
(iii) Sharing
(iv) Over-riding
Q.l(d) What are the features of C++ that make it suitable for object oriented implementations?
Q.2 (a)Prepare object diagrams showing at least 5 relationships among the following object classes. Include associations, aggregations and generalizations. Use qualified associations. 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 School, Playground, Principla, Classroom, Book, Student, Teacher.
Q.2(b) Explain the relationship between an object and a dynamic model. Your explanation should include an example of each.