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 do you mean by scope of variable?

879


What is the purpose of garbage collection in java?

1083


When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?

1019


What restrictions are placed on method overloading in java programming?

1041


What is java objectoutputstream?

972


Define packages in java?

985


Is java call by value?

1071


Why do we need wrapper class?

978


What is number data type?

1016


How do you trim a space in java?

970


What is the use of default method in interface in java? Explain

985


What is the difference between post and put?

1044


What is instance example?

935


Is java jre still free?

939


What is meant by bytecode?

1011