I was asked to draw the class diagram for the below
scenario which should obey OOPS concept. A Portal is to be
developed for a school , which has 3 main divisions viz ,
Education , Admin & Trust. Each division has 2 sub
divisions Kinder Garden & Higer Secondary.

Answer Posted / binoy

I would answer this different.

I would have a Class (Interface) called School.
I will have an Class (Interface) called Division extending
School.
Education , Admin and Trust would be instances of Division.
KinderGarten and Higher Secondary would be subclasses that
would implement the Division interface.
In real time scenario, KinderGarten or Higher secondary
would be implementing either Education,Admin or Trust
classes.


I am not sure if any of them are any methodes. All are to
be considered as classes instead of methods

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is 0 true or is 1 true?

514


How many types of array are there?

546


Explain about features of local inner class?

600


What is a variable analysis?

634


When a byte datatype is used?

561






What language is an assembler written in?

549


What does percent mean in java?

588


When to use runnable interface vs thread class in java?

516


What do you mean by local class?

511


Why is multiple inheritance not supported in java?

558


What does this () mean in java?

543


What are static blocks and static initalizers in java ?

582


What is finally and finalize in java?

590


Is there any sort function in java?

571


Which container method is used to cause a container to be laid out and redisplayed in java programming?

597