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
what is use of functional interface in java 8?
Have you ever used hashtable and dictionary?
How do you call a reference in java?
Differece between class and generic class?
Can we declare the static variables and methods in an abstract class?
What is meant by vector class, dictionary class, hash table class, and property class?
How much is a java license?
What are the two types of exceptions in java? Which are the differences between them?
What is a static class in java?
Explain about varargs in java?
If an application has multiple classes in it, is it okay to have a main method in more than one class?
What is break and continue statement?
What is the difference between integer parseint and integer valueof?
How will you calculate the depth of a binary tree if the tree contains 15 nodes?
What is bigger kb or mb?