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
Is 0 true or is 1 true?
How many types of array are there?
Explain about features of local inner class?
What is a variable analysis?
When a byte datatype is used?
What language is an assembler written in?
What does percent mean in java?
When to use runnable interface vs thread class in java?
What do you mean by local class?
Why is multiple inheritance not supported in java?
What does this () mean in java?
What are static blocks and static initalizers in java ?
What is finally and finalize in java?
Is there any sort function in java?
Which container method is used to cause a container to be laid out and redisplayed in java programming?