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

What is the purpose of interface?

577


Differentiate between static and non-static methods in java.

559


Which data type is a class in java?

569


What is OOP's Terms with explanation?

602


What does it mean that a class or member is final?

558






What are the differences between throw and throws?

526


What is better- service oriented or batch oriented solutions?

1532


Can we create a class inside a class in java?

542


Difference between linkedlist and arraylist.

586


does java support pointers?

560


What is static synchronization?

573


How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?

540


Is 0 a prime number?

570


Can there be an abstract method without an abstract class?

537


What is use of map in java?

511