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


Please Help Members By Posting Answers For Below Questions

Can we declare a class as static?

606


In how many ways we can do exception handling in java?

589


I don’t want my class to be inherited by any other class. What should I do?

591


What do you mean by mnemonics?

546


Can we have two methods in a class with the same name?

590






What is a singleton puppy?

543


What does the ‘static’ keyword mean? Is it possible to override private or static method in java?

578


What is a function easy definition?

535


Which list is sorted in java?

591


What is floor math?

528


Which is bigger float or double java?

540


What is the difference between a scrollbar and a scrollpane?

580


How can I become a good programmer?

498


What is your platform?s default character encoding and how to know this?

1761


What is the equal sign?

572