Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Is static variable stored in heap?

930


Explain about features of local inner class?

1086


What is java in simple terms?

950


How do you execute a thread in java?

905


What is string [] args?

957


What is the difference between the file and randomaccessfile classes?

1033


Can an interface have a constructor?

900


Write a program in java to create a doubly linked list containing n nodes.

909


What is use of functional interface in java 8? Explain

946


Can java hashmap have duplicate keys?

960


How many classes can any class inherit java?

928


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

1271


What is double in java?

932


What is difference between checked and unchecked exception in java?

959


What is boolean strategy?

1083