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 is the purpose of interface?
Differentiate between static and non-static methods in java.
Which data type is a class in java?
What is OOP's Terms with explanation?
What does it mean that a class or member is final?
What are the differences between throw and throws?
What is better- service oriented or batch oriented solutions?
Can we create a class inside a class in java?
Difference between linkedlist and arraylist.
does java support pointers?
What is static synchronization?
How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?
Is 0 a prime number?
Can there be an abstract method without an abstract class?
What is use of map in java?