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 / guest
I said , I will have a Base Class School , and 3 sub
classes for school , viz Admin Class, Eucation Class &
Trust Class. I will have an interface with 2 methods , viz
KinderGarden() and Hsc() and an implementation class for
these methods. The sub classes will extend School class and
implement this interface.
| Is This Answer Correct ? | 26 Yes | 2 No |
Post New Answer View All Answers
What is the Scope of Static Variable?
What is the major advantage of external iteration over internal iteration?
When do you call copy constructor?
What are keywords in java?
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
What is the difference between method overriding and overloading?
Are constructors methods?
What is an array in java?
Can we execute a program without main() method?
Write a function to find out longest palindrome in a given string?
What is difference between path and classpath variables?
Add a value x to array from index l to r where 0 <= l <= r <= n-1
List the three steps for creating an object for a class?
How variables are stored in memory?
Can we override protected method in java?