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 do you mean by scope of variable?
What is the purpose of garbage collection in java?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
What restrictions are placed on method overloading in java programming?
What is java objectoutputstream?
Define packages in java?
Is java call by value?
Why do we need wrapper class?
What is number data type?
How do you trim a space in java?
What is the use of default method in interface in java? Explain
What is the difference between post and put?
What is instance example?
Is java jre still free?
What is meant by bytecode?