Solutions to HW  2

    Classes are ADT's except that ADT's do not support inheritance and polymorphism. 


    Private parts of superclass are generally not relevant to the subclass and hence subclass need not have any access to it. Also denying the access of the superclass's private parts to the subclass prevents any modification in the data private to the superclass except by the classes that are friend's of the superclass. 

    7 


    In OOD, OOA forms the first step. Using the model produced during the analysis, a detailed model of the final system is built. In OO approach, the distinction between analysis and design is not very clear and depends on the perception. Performing the object modelling can be viewed as the first step of the design. And the first step of design is performed during the requirements phase when the problem is being modelled for producing the SRS.

BACK TO HOMEWORKS
BACK TO CS406 HOMEPAGE