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 double parsedouble in java?
Explain the difference between abstract class and interface in java?
Is it possible to override the main method?
Do I need java on my pc?
In java, how many ways you can take input from the console?
How to remove the trailing spaces from a string?
Name the components that are termed to be Heavy-weight component but available in Light-weight components?
Why does java not support pointers?
Give me an example of array and linked list? Where they can be used?
What must a class do to implement an interface in java programming?
How to retrieve data from database in java using arraylist?
Is string thread safe in java?
What are nested classes in java?
What is hashmap in java?
Why bytecode is called bytecode?