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 / binoy

I would answer this different.

I would have a Class (Interface) called School.
I will have an Class (Interface) called Division extending
School.
Education , Admin and Trust would be instances of Division.
KinderGarten and Higher Secondary would be subclasses that
would implement the Division interface.
In real time scenario, KinderGarten or Higher secondary
would be implementing either Education,Admin or Trust
classes.


I am not sure if any of them are any methodes. All are to
be considered as classes instead of methods

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's the purpose of static methods and static variables?

1035


What is the significance of continue jump statement? Explain with an example.

1252


What are methods of a class?

976


Where will it be used?

1889


What is object class in java?

871


Can an integer be a string?

985


What an i/o filter in java programming?

1015


Can I learn java without any programming experience?

983


Can we create object of inner class in java?

884


What are class types in java?

1030


Define how can we find the actual size of an object on the heap?

1115


How do you escape json?

941


How does enum work in java?

963


What is scope & storage allocation of global and extern variables? Explain with an example

995


what is object slice?

2003