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 is use of functional interface in java 8?

1026


Have you ever used hashtable and dictionary?

1020


How do you call a reference in java?

988


Differece between class and generic class?

1047


Can we declare the static variables and methods in an abstract class?

990


What is meant by vector class, dictionary class, hash table class, and property class?

1160


How much is a java license?

931


What are the two types of exceptions in java? Which are the differences between them?

1103


What is a static class in java?

1014


Explain about varargs in java?

1134


If an application has multiple classes in it, is it okay to have a main method in more than one class?

1013


What is break and continue statement?

1097


What is the difference between integer parseint and integer valueof?

1005


How will you calculate the depth of a binary tree if the tree contains 15 nodes?

1084


What is bigger kb or mb?

1048