adspace
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
Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example
What is the difference between equals() and == in java?
explain different ways of using thread? : Java thread
What do you mean by an interface in java?
What is an object in java and how is it created?
What are the differences between heap and stack memory in java?
How to create a base64 decoder in java8?
What is the difference between break and continue statements?
Write a program to find the whether a number is an Armstrong number or not?
What is java string pool?
Is minecraft 1.15 out?
Realized?
Write a program to print count of empty strings in java 8?
Differentiate between static and non-static methods in java.
What is a classloader in java?