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
Can we declare a class as static?
In how many ways we can do exception handling in java?
I don’t want my class to be inherited by any other class. What should I do?
What do you mean by mnemonics?
Can we have two methods in a class with the same name?
What is a singleton puppy?
What does the ‘static’ keyword mean? Is it possible to override private or static method in java?
What is a function easy definition?
Which list is sorted in java?
What is floor math?
Which is bigger float or double java?
What is the difference between a scrollbar and a scrollpane?
How can I become a good programmer?
What is your platform?s default character encoding and how to know this?
What is the equal sign?