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 / adarsh
I think the best way to do this would be to have an interface for school,Kinder Garden and Higher secondary .Make School as the super class and kinder garden and secondary as an interface which extends the school interface.Then we can have three classes Education,Admin and Trust and make this classes implement both kinder garden and Secondary interfaces
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What will be the default values of all the elements of an array defined as an instance variable?
Tell me about your ability to work under pressure
Is it necessary that each try block must be followed by a catch block?
What does string intern() method do?
What is final modifier?
What happens if we don’t define serial version uid?
Which is the best approach for creating thread ?
What is thread life cycle?
What is the significance of listiterator?
What is a method vs function?
What is a classloader in java?
How many boolean functions are there?
What is a method type?
What do you mean by scope of variable?
Can you give few examples of final classes defined in java api?