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
Is static variable stored in heap?
Explain about features of local inner class?
What is java in simple terms?
How do you execute a thread in java?
What is string [] args?
What is the difference between the file and randomaccessfile classes?
Can an interface have a constructor?
Write a program in java to create a doubly linked list containing n nodes.
What is use of functional interface in java 8? Explain
Can java hashmap have duplicate keys?
How many classes can any class inherit java?
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
What is double in java?
What is difference between checked and unchecked exception in java?
What is boolean strategy?