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 java inner class be static?
What are different type of exceptions in java?
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?
What is the use of coding?
What are thread safe functions?
What does int argc char * argv [] mean?
What are the steps that are followed when two computers connect through tcp?
Can a class be private?
What is meant by bytecode?
difference between byte stream class and character stream class?
What is the right data type to represent a price in java?
how to prepare for IT Officers Interview in Banks
What do you mean by access modifier?
What are data types in oop?
What is the range of a character variable?