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
Which is easier .net or java?
What are the two environment variables that must be set in order to run any java programs?
What is the main purpose of java?
What is indexof?
What are the types of sockets in java?
What is final variable?
What is the difference between menuitem and checkboxmenu item?
What is r in java?
Which is a valid identifier?
Explain static nested classes ?
Can you override a final method?
Is java same as core java?
Can we call the run() method instead of start()?
What is private static in java?
What is meant by stack and queue?