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
What's the purpose of static methods and static variables?
What is the significance of continue jump statement? Explain with an example.
What are methods of a class?
Where will it be used?
What is object class in java?
Can an integer be a string?
What an i/o filter in java programming?
Can I learn java without any programming experience?
Can we create object of inner class in java?
What are class types in java?
Define how can we find the actual size of an object on the heap?
How do you escape json?
How does enum work in java?
What is scope & storage allocation of global and extern variables? Explain with an example
what is object slice?