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 mean by exception?
Explain the reason behind ending a program with a system.exit(0)?
Difference between this() and super() in java ?
Is null an object in java?
what is the purpose of using rmisecuritymanager in rmi?
What is public static?
What are assembly attributes?
Can we have any code between try and catch blocks?
Is set sorted in java?
Can we declare array without size in java?
How we can execute any code even before main method?
Why is the main method static?
Explain methods specific to list interface?
What’s the difference between the methods sleep() and wait()?
What must a class do to implement an interface in java programming?